-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid composer version constraint ^2.1 #179
Comments
Per the composer docs, the |
Platform docs say |
Composer has definitely had a 2.1 version: https://github.com/composer/composer/releases/tag/2.1.0 The docs are just a reference and not a specific as a project may need a specific version (or specific range). Additionally, projects do not need to define composer as a global dependency for the project and can instead require a specific version defined in their composer.json(.lock). That said, Composer 2.1 is EoL so we should go ahead and update to the LTS 2.2 (ie |
I concede all of your points. This is a valid spec. Apparently Platform installs composer using a However, there's no reason for this ^2.1 spec, it's meaningless in the last couple of years. ^2 is obvious and raises no eyebrows, and does no harm, and matches the platform and upsun docs. ^2 does fine for all Drupal versions. |
Describe the bug
The current constraint here is invalid, composer has never supported a 2.1 branch (there is a 2.2). I'm not sure how this can work, but it seems that platform may try and fail to use 2.1, so just uses 2.8.x currently instead.
Include some logs
None needed
Reproducing
Look at it. Do a
composer self-update -h
Expected behavior
Use a valid version
Your environment
Platform
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: