-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix cpanm fails with old perl #1928
Conversation
WalkthroughThe changes involve updates to the CPAN installer workflow configuration, including modifications to the trigger paths, Perl version specifications, and the introduction of a new distribution section. Additionally, a new script for installing the Changes
Assessment against linked issues
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (3 hunks)
Additional comments not posted (5)
.github/workflows/test-cpan-installer.yml (5)
5-5
: LGTM!Including the workflow file itself in the
paths
section is a good practice to ensure that the workflow runs whenever the workflow configuration is updated.
34-34
: LGTM!Specifying the exact version "5.40" instead of just "5" provides more clarity and ensures that the latest version is used. This change aligns with the objective of testing the CPAN installer with the latest version of Perl.
35-35
: LGTM!Adding Perl version "5.8" as a separate entry in the matrix ensures that the CPAN installer is tested with this specific version. This change aligns with the objective of addressing the failure of secure
cpanm
calls with Strawberry Perl versions 5.22 and earlier, as mentioned in the linked issue.
46-47
: LGTM!Introducing a
distribution
section allows for specifying different Perl distributions to test the CPAN installer with. Specifying "default" as a distribution option ensures that the default distribution is used for the majority of the test matrix.
48-60
: LGTM!The
include
section allows for specifying additional configurations to be included in the test matrix. The added entries ensure that Perl "5.8" on "windows-latest" is tested with different installers (cpanm, cpm, and carton) using the "strawberry" distribution. This change aligns with the objective of addressing the failure of securecpanm
calls with Strawberry Perl versions 5.22 and earlier, as mentioned in the linked issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
scripts/lib/perl5/Mozilla/CA/cacert.pem
is excluded by!**/*.pem
Files selected for processing (4)
- scripts/.gitignore (1 hunks)
- scripts/install-mozilla-ca.sh (1 hunks)
- scripts/lib/perl5/Mozilla/CA.pm (1 hunks)
- src/setup-perl.ts (1 hunks)
Files skipped from review due to trivial changes (2)
- scripts/.gitignore
- scripts/install-mozilla-ca.sh
Additional comments not posted (3)
scripts/lib/perl5/Mozilla/CA.pm (2)
1-15
: LGTM!The code changes are approved.
17-71
: LGTM!The documentation is comprehensive and clear.
src/setup-perl.ts (1)
58-63
: LGTM!The code change is adding an additional directory
perl5
to thePERL5LIB
environment variable. This will allow the Perl interpreter to search for modules in both the originallib
directory and the newperl5
directory.The change looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (2)
dist/setup/index.js
is excluded by!**/dist/**
dist/setup/index.js.map
is excluded by!**/dist/**
,!**/*.map
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/test-cpan-installer.yml (3 hunks)
- test/p5-Test-Module/cpanfile (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/test-cpan-installer.yml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/test-cpan-installer.yml
close #1920
Summary by CodeRabbit
New Features
Mozilla::CA
Perl module.Improvements
Chores
.gitignore
to exclude specific Perl library files.