Version 2.X should be compatible with Drupal 9 and 10

Created on 23 August 2023, 10 months ago
Updated 24 August 2023, 10 months ago

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

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada OwilliwO Montreal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024