Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explode drupal/core-dev require-dev dependency into the minimum packa…
…ges we need. The drupal/core-dev package is simply a shortcut for including dependencies necessary for running automated tests. See https://github.com/drupal/core-dev/blob/9.4.x/composer.json It is designed specifically for running Drupal core automated tests. We used it as a simple way to get our automated tests running initially, but it includes some dependencies that we do not need. It also pins some package versions, including symfony/finder and symfony/filesystem. This caused an issue for us when we refactored our composer.json files to use composer-merge-plugin. We got around this issue by pinning symfony/finder to ^4. See https://www.drupal.org/project/farm/issues/3239420 See farmOS@bd33d0f Furthermore, in testing Drush 11, I discovered that a similar conflict started occurring with symfony/filesystem (presumably because Drush depends on that as well now). I eventually managed to get it to work by pinning symfony/filesystem as well, but only if I moved both pins to the root farmOS composer.json (it didn't fix it if they were in composer.project.json). That is what ultimately drove me to dig into this and decide to split up our dependency on drupal/core-dev. By removing the dependency on drupal/core-dev, we no longer have the issue with symfony/finder, so that pinned dependency can be removed. I repeatedly ran tests with as few of the drupal/core-dev dependencies as possible until tests started passing again. So this final list represents the minimum requirements for our tests.
- Loading branch information