Page MenuHomePhabricator

Bump composer/installers dependency to a version that supports Composer 2
Open, HighPublicFeature

Description

Feature summary (what you would like to be able to do and where):

I would like to be able to installer the Auth_remoteuser extension using Composer 2. The maximum version of composer/installers that can be installed using "composer/installers": "~1.0.1"is 1.0.25, which only supports composer-plugin-api version 1. Both versions 1 and 2 of the composer plugin API are supported starting with composer/installers version 1.9.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

I tried to install the Auth_remoteuser extension using Composer 2.0 and ran into dependency errors.

Benefits (why should this be implemented?):

  • Updated dependency code (1.0.25 was released in 2016, 1.12 was released in 2021)
  • Ability to install extension with the latest version of Composer

Event Timeline

jrchamp triaged this task as High priority.Aug 26 2022, 3:02 PM
jrchamp subscribed.

Hi @dweingart

I don't think that the version was purposefully limited, so it makes sense to relax the restriction. It seems like the options to allow Composer 2.x would be ^1.0.1|^2 or >=1.0.1. As this plugin does not typically need regular changes, I think the open-ended version requirement would be best. We're not doing anything extremely complicated with our composer configuration, so it will likely be forward-compatible with the eventual Composer 3.

What are your thoughts?