Drop support for Composer 2.2, require Composer >=2.5.5

Created on 27 March 2023, over 1 year ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

Per https://endoflife.date/composer, Composer 2.2 will not be supported anymore on January 1, 2024. At the time of writing, Composer 2.5 is [updated May 22] the actively maintained branch, Composer 2.6 is under development: https://github.com/composer/composer/milestone/31.

๐Ÿ› Drop support for end-of-life versions of Composer Fixed is the last commit that tightened supported Composer versions:

final public const SUPPORTED_VERSION = '~2.2.12 || ^2.5';

Proposed resolution

  1. Definitely: drop support for Composer 2.2.x:
    final public const SUPPORTED_VERSION = '^2.5';
    
  2. Potentially: require Composer ~2.5.5, to allow removing the work-around for a Composer bug that ๐Ÿ› Random failure: "PHP temp directory (/tmp) does not exist or is not writable to Composer." Fixed introduced:
    final public const SUPPORTED_VERSION = '~2.5.5';
    
  3. Dropping 2.2.x support will also unblock ๐Ÿ› Rely on TUF-protected resources to determine which updates are available Postponed: needs info : it'll allow Automatic Updates to use composer audit to determine available security updates in a PHP-TUF protected information channel, which Drupal.org's update.xml is not.
  4. The problem composer config minimum-stability will fail if the root composer.json does not specify minimum-stability is also resolved in Composer 2.5.5 (see https://github.com/composer/composer/issues/11302), so then we would not have to do
    case 'minimum-stability':
              return 'stable';

    in package_manager/src/ComposerInspector.php anymore either.

  5. Potentially: require Composer >=2.5.5 and already allow the upcoming 2.6 version:
    final public const SUPPORTED_VERSION = '~2.5.5 || ^2.6';
    

Remaining tasks

  1. Wait for December 31, 2023.
  2. Discuss & decide 2.5.5 as a minimum โ€” based on the Composer release situation by that time.

User interface changes

None.

API changes

None.

Data model changes

Dropped support for Composer 2.2.x, bumped minimum to 2.5.5, and allowing the upcoming version 2.6.

๐Ÿ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

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

Comments & Activities

Production build 0.71.5 2024