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 version 2.2.5 might break Contao installations #4017
Comments
Accessing this constant does not seem to be an intended use case, see https://github.com/composer/package-versions-deprecated/blob/b4f54f74ef3453349c24a845d22392cd31e65f1d/src/PackageVersions/Installer.php#L66 so we probably have to change this. |
We should probably add a check like
|
For everyone else experiencing this issue: Downgrading to Composer 2.2.4 (e.g. via |
I can confirm that. |
Closed in favor of #4020 |
It would be great if someone could verify that the changes from #4020 work in a setup that is currently broken. |
Description ----------- Fixes #4017 For everyone experiencing the issue `There is no "contao-components/*" asset package`: Downgrading to Composer 2.2.4 (e.g. via `composer self-update 2.2.4`) can be a way to workaround this issue for now. Commits ------- 24874fd Fix compatibility with Composer 2.2.5 0ae7ce0 Allowing the package versions plugin is no longer needed dba7dcc Fix prefer lowest ded3ad3 CS Co-authored-by: Leo Feyer <github@contao.org>
Affected version(s)
all
Description
Due to the new handling regarding the composer/package-versions-deprecated plugin introduced in Composer version 2.2.5 (see Pull Request #10458), there's a chance that the
vendor/composer/package-versions-deprecated/src/PackageVersions/Versions.php
file contains an empty VERSIONS constant. That could lead to errors likeThere is no "contao-components/*" asset package
.I just had two installations where composer was updated from 2.1.x to 2.2.5 which lead to this issue.
The text was updated successfully, but these errors were encountered: