Problem/Motivation
Composer 2 is required for Drupal 10. Potentially 2.2, see #3215870: Require Composer 2.3.5 for developing Drupal 10 core.
Steps to reproduce
Proposed resolution
Remove any Composer 1 specific code paths from Drupal 10.
Remaining tasks
Find them. Remove them.
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3284420-7.patch | 5.84 KB | longwave |
| #5 | 3284420-5.patch | 5.59 KB | longwave |
Comments
Comment #2
andypostComment #3
gábor hojtsyParent was incorrect.
Comment #4
xjmComment #5
longwaveBumped
composer-plugin-apito ^2 in all our plugins. The scaffolding plugin has a code path to support Composer 1 which has been removed. The check in Drupal\Composer\Composer::ensureComposerVersion() now ensures core developers use Composer 2.Comment #6
spokjePHPCS failed on an unused
use.Besides that, shouldn't these all be requiring PHP
">=8.1.0"in the 10.x branches?If so, probably for a follow-up issue?
Comment #7
longwaveFixed unused use statement.
FWIW I am in two minds as to whether we should do this, as the code path for Composer 1 is small and it's not causing us any issue, is there any need to drop it now?
Re #6 this should be added to #3272110: Drupal 9 and 10's Drupal\Component composer.json files are totally out of date if it's not already there
Comment #8
andypostLooks enough
Comment #10
catchThe main reason to drop composer 1 support is because automatic updates will require 2.1 or higher. We might want to raise the minimum further, but that issue is still active #3215870: Require Composer 2.3.5 for developing Drupal 10 core. Not many places you can actually enforce composer version but we might as well change the places we can.
Committed/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!