Skip to content
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

composer.json - Declare requirement for composer-runtime-api #24202

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

totten
Copy link
Member

@totten totten commented Aug 9, 2022

Overview

This requirement was introduced to 5.53.alpha via 9584d5d + df54c64. It should be declared so that incompatible environments raise a sensible error.

Before

If you run composer install on composer 1.10.26, then it starts downloading+replacing files, it does a lot of work, and it ultimately fails with error Class 'Composer\InstalledVersions' not found in guzzle_php81_shim.php (which is rather mysterious to anyone who doesn't know that class + file).

Screen Shot 2022-08-09 at 3 38 39 PM

After

If you run composer install on composer 1.10.26, then it fails quickly, and the error suggests that the problem is your composer version:

Screen Shot 2022-08-09 at 3 40 12 PM

Technical Details

See also: https://getcomposer.org/doc/07-runtime.md#runtime-composer-utilities

This requirement was introduced to 5.53.alpha via 9584d5d.
It should be declared so that incompatible environments raise a sensible error.
@civibot
Copy link

civibot bot commented Aug 9, 2022

(Standard links)

@civibot civibot bot added the 5.53 label Aug 9, 2022
@eileenmcnaughton eileenmcnaughton merged commit fbe1bd6 into civicrm:5.53 Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants