Recent drush requires updated symfony/finder
While installing CiviCRM 5.31 on Drupal 8, composer had a problem during composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.31'
.
Console output
./composer.json has been updated
Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- civicrm/civicrm-core[5.31.0, ..., 5.32.x-dev] require symfony/finder ~3.0 || ~4.4 -> found symfony/finder[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.1.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires civicrm/civicrm-core ~5.31 -> satisfiable by civicrm/civicrm-core[5.31.0, 5.31.x-dev, 5.32.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
I had previously installed drush/drush:10.3.6
which requires symfony/finder:5.1.8
. However, civicrm/civicrm-core:~5.31
requires symfony/finder ~3.0 || ~4.4
. This leads to the problem above. I had to use composer require drush/drush:10.3.5
to proceed with the installation.
Maybe civicrm-core
should be updated to require symfony/finder:~5.1
as well?