ci: bump install-with-cpm to @v2 so old Perls install deps#48
Merged
Conversation
The Modernize CI commit (db41601) pinned perl-actions/install-with-cpm@v1 (an April 2024 tag). With its default version: main, that tag downloads the latest cpm, which since cpm v0.999.0 requires Perl >= 5.24 (the "Lyon Amendment"). So the Install Dependencies step failed before tests ran on every Perl <= 5.22: Perl v5.24.0 required--this is only v5.22.4, stopped at cpm line 2. Upstream already fixed this in install-with-cpm v2.4 (PR perl-actions/ install-with-cpm#96): when version resolves to main, no checksum is set, and the perl is < 5.24, the action auto-substitutes cpm 0.998003 (the last pre-Lyon release); modern Perls keep getting the latest cpm. Bump all five Install Dependencies steps to @v2 to consume that fix. This restores the 5.8-5.22 matrix without freezing modern Perls onto an old cpm. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0fe7544 to
2ebc01a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
CI fails on every Perl ≤ 5.22 (5.8, 5.10, 5.12, 5.14, 5.16, 5.18, 5.20, 5.22) — a clean boundary at 5.24.
MIN_PERL_VERSIONis5.008and the matrix testssince-perl: 5.8, so 5.22 is just the highest failing version, not a configured limit.The failure is in the Install Dependencies step, not the tests. Commit
db41601("Modernize CI") pinnedperl-actions/install-with-cpm@v1(an April 2024 tag). With its defaultversion: main, that tag downloads the latestcpm, which since cpm v0.999.0 requires Perl ≥ 5.24 (the "Lyon Amendment"):The Tie-DBI code itself still works on old Perls — this is purely a CI tooling regression.
Fix
Upstream already solved this in install-with-cpm v2.4 (perl-actions/install-with-cpm#96): when
versionresolves tomain, nochecksumis set, and the perl is < 5.24, the action auto-substitutes cpm0.998003(the last pre-Lyon release); modern Perls keep getting the latest cpm.Bump all five
Install Dependenciessteps from@v1to@v2to consume that fix. This restores the 5.8–5.22 matrix without freezing modern Perls onto an old cpm.CI-only change — no code,
$VERSION, orChangesedits.🤖 Generated with Claude Code