Problem/Motivation
In order to prepare a site for Drupal 10 migration, we are updating it to Drupal 9.5.X, then all modules to a version compatible with Drupal 10. But as site is still running Drupal 9, modules needs to have at least one version compatible with both 9 and 10.
$ lando composer update drupal/commerce_bulk
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/commerce_bulk dev-2.0.x requires drupal/core ^10 -> found drupal/core[10.0.0-alpha1, ..., 10.1.x-dev] but the package is fixed to 9.5.9 (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.
- drupal/commerce_bulk 2.0.x-dev is an alias of drupal/commerce_bulk dev-2.0.x and thus requires it to be installed too.
- Root composer.json requires drupal/commerce_bulk 2.0.x-dev@dev -> satisfiable by drupal/commerce_bulk[2.0.x-dev (alias of dev-2.0.x)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Steps to reproduce
Try to upgrade commerce_bulk module to 2.X (dev or beta) with Drupal still on 9.X
Proposed resolution
Not sure about the code, but commerce_bulk.info.yml and composer.json files should be updated so module 2.x is still compatible with at least Drupal 9.5.X
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
owilliwoComment #4
drugan commentedI manually tested it all the actions with the core 9.5.9 version. Hope that will work for earlier ^9 versions too.
Comment #5
owilliwoAwesome !
Just tested, beta2 version is fully compatible with Drupal 9 & 10.
Thanks for the quick answer and release.