fix: pin specific composer 2 versions for historic Magento releases #311
+55
−56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Fixes: Some past Magento releases in supported-versions had unpinned
composer: 2constraints, causing it to use the latest Composer 2 version for those. Those past versions are not compatible with composer 2.9.This caused ~half of the errors in this mirror preview build: https://github.com/mage-os/generate-mirror-repo-js/actions/runs/20271742450
This fixes resulting integrity test errors by pinning them to the composer versions of the time -- 2.2 for all of the early versions in question.
What is the new behavior?
Installations will run for those versions with composer 2.2 instead of 2.9, avoiding the incompatible security audit introduced in composer 2.9.
I also set the composer version to 2.9.2 for the 'next' version (which is used only for nightlies).
Does this PR introduce a breaking change?
Other information
Tests pass: