Drop support for end-of-life versions of Composer

Created on 23 February 2023, almost 2 years ago
Updated 28 February 2023, over 1 year ago

Problem/Motivation

Bump composer minimum version requirement.
\Drupal\Tests\package_manager\Kernel\ComposerPatchesValidatorTest::testErrorDuringPreApplyis failing on my local and passing for @wim.leers as he is having higher composer version i.e 2.5.2 and I am on 2.4.1
with error:

Why I think this can be a reason behind the test failure:
In active directory we actually do the composer install and it creates the vendor directory and install.json and install.php which is not the case with stage directory so something has changed with the newer version of composer, which is doing the extra check so we need to do the require โ€œcomposer-plugin-apiโ€ to meet that requirement in stage.

Steps to reproduce

below is a screen shot of things I tried:

  1. I was on local version 2.4.1 and \Drupal\Tests\package_manager\Kernel\ComposerPatchesValidatorTest::testErrorDuringPreApply was failing for me I tried updating version to 2.4.2 and 2.4.3 and then finally to 2.4.4 which made the tests pass. So we will need minimum 2.4.4 composer version.
  2. Other reason to support this is https://endoflife.date/composer which shows that support for 2.4.1-2.4..3 are ended also for 2.4.4 has ended so that should be decided if we want to change the minimum version requirement to 2.4.4 or 2.5.*

support for composer 2.2.21 is not ended yet but it's going to end in 10 months and we are going to support drupal 10.1.* after that. So we can bump the minimum version constraint to maybe 2.4.4 or 2.5.1

set composer version to 2.4.1 and try running the test it should be fail, with the following error message:

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia yash.rode pune

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

Comments & Activities

Production build 0.71.5 2024