Problem/Motivation
composer/installers 2.0.0 was released a few months ago: https://github.com/composer/installers/releases/tag/v2.0.0
Steps to reproduce
Proposed resolution
Upgrade to 2.x.
Remaining tasks
Do the upgrade, see what breaks, and fix it.
Determine if we can add support for both 1.x and 2.x in Drupal 9.4.
Decide if we want to support both 1.x and 2.x in Drupal 10.
User interface changes
API changes
Data model changes
Release notes snippet
New Drupal 10 site development now requires composer/installers version 2.0 or higher (up from version 1.9), and the default version is now 2.0.1.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3253059-11.patch | 6.07 KB | longwave |
Comments
Comment #2
longwaveComment #3
spokjeLooks like #2 got hit by the committing of #3252088: Increase Drupal::MINIMUM_PHP to 8.0.0. Rerolled.
Comment #5
spokjeComment #6
spokjeComment #7
spokjeComment #8
xjmClosed #3265124: Update composer/installers to ^2.0 as a duplicate of this issue.
Comment #9
xjmThis will need a reroll.
I'm not sure we should support both 1.9 and 2.0 given that we don't have min-max testing. Not sure though; maybe we could do that for 9.4. For Drupal 10, we might want to make 2.0 the minimum.
Comment #10
longwaveI don't think we need to support 1.9 any more. 2.0's breaking changes don't affect us - they are a bump to minimum PHP 7.3, which we are already on or exceeding, and the removal of some PHP frameworks that don't concern us.
We reference
composer/installers:^1.9in four relevant places:drupal/core-recommended, but there is explicit code to excludecomposer/installersfrom core-recommendedcomposer create-projecttime only; existing users will stay on their current versionTherefore I think this is safe to bump in composer.json and the two project templates directly to
^2.0.We also mention it indirectly in composer/Plugin/Scaffold/README.md and we should probably bump the version number there at the same time.
Comment #11
longwaveRerolled for
^2.0only, also updated scaffold readme.Comment #12
xjmAdding a release note.
Comment #13
xjmI read over the
composer/installerspackage information and 2.0.0 release notes and I agree with #10; this seems like a safe increase based on that info. (Also if there are any issues, we'll find out sooner rather than later by increasing the requirement before the next alpha.) Thanks!Comment #14
xjmComment #15
xjmAlso crossposted with myself apparently.
Comment #16
xjmComment #17
daffie commentedThe patch updates the package "composer/installers" to version 2.0.
Looks good to me.
Comment #19
xjmCommitted to 10.0.x. Thanks!
Comment #20
wim leersShouldn't we have a change record for this?
Comment #21
xjm@Wim Leers, no, we don't provide change records for dependency updates that don't result in public API changes. Just release notes.