fix(ci): replace cpm action with cpanm for quick test - #56
Draft
Koan-Bot wants to merge 3 commits into
Draft
Conversation
perl-actions/install-with-cpm@v1 uses MetaDB which resolves Test::MockModule >= 0.175 to v0.181.0, but that tarball returns 404 from CPAN. This blocks ALL PRs since the matrix job depends on the quick test passing. Switch to cpanm which uses the 02packages index directly and is pre-installed on ubuntu-latest. Also eliminates the Node.js 20 deprecation warning from the GitHub Action. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cpanm is not pre-installed on ubuntu-latest runners. Use the standard cpanmin.us bootstrapper to install it inline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Older perldocker/perl-tester containers (5.8-5.22) no longer ship cpm, causing "cpm: not found" failures across the matrix. Use cpanm which is universally available in all perl-tester images. This extends the quick-test fix (cpanm bootstrap) to the matrix job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
What
Replace
perl-actions/install-with-cpm@v1with directcpanmin the quick test job.Why
Test::MockModule v0.181.0 tarball returns 404 from CPAN. The cpm MetaDB resolver picks this version, causing the quick test to fail. Since the matrix job depends on quick test, all PRs are blocked.
How
Use
cpanm --notest --installdeps .which uses the 02packages index (not MetaDB) and is pre-installed on ubuntu-latest. Also eliminates the Node.js 20 deprecation warning from the action.Testing
Local tests pass (174 tests, only known dev-checkout failures: 00-load, boilerplate).
🤖 Generated with Claude Code