Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
First step of #3215870: Require Composer 2.3.5 for developing Drupal 10 core.
Proposed resolution
Require at least composer/composer
2.2.4 as per current discussion. Leave it as a dev dependency now. It may be further increased to 2.3 in #3264918: Update symfony/console to Symfony 6.
Remaining tasks
Followup: #3265124: Update composer/installers to ^2.0
User interface changes
N/A
API changes
TBD
Data model changes
N/A
Release notes snippet
Needed.
Issue fork drupal-3265094
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3265094-composer changes, plain diff MR !1827
Comments
Comment #3
xjmComment #4
xjmComment #5
longwaveI think we should bump composer/installers to ^2.0. Reasoning:
We also include composer/installers in the recommended and legacy project templates. I guess we should bump it there too, but does that need a separate issue?
Comment #6
longwaveThere is also the interesting note
It's likely a long way off but in a Composer-only world we could perhaps use this for module discovery.
Comment #7
xjm@longwave, good points, thanks.
I checked with the Automatic Updates team and they don't currently interact with the dependency, so let's get this in first for that reason, and handle the
composer/installers
update as a followup.Comment #8
xjmPosted #3265124: Update composer/installers to ^2.0 for the followup. Thanks!
Comment #9
xjmComment #10
xjmComment #11
xjmComment #12
catchIf we're going to bump composer/installers in a follow-up, I think this is ready to go.
Comment #13
alexpottCommitted bedd3d0 and pushed to 10.0.x. Thanks!
Comment #15
xjm