Skip to content

Commit

Permalink
fix dependency of cpanm, cpm and carton
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jun 10, 2024
1 parent 096e63b commit 01c4170
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion author/carton/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN curl --compressed -sSL https://raw.githubusercontent.com/tokuhirom/Perl-Buil
RUN apk del perl patch

ENV PATH=/opt/perl-5.8/bin:$PATH
RUN curl --compressed -sSL https://cpanmin.us/ | perl - --notest Distribution::Metadata@0.06 App::FatPacker::Simple@0.09 Carton ExtUtils::PL2Bat
RUN curl --compressed -sSL https://cpanmin.us/ \
| perl - --notest \
Carton ExtUtils::PL2Bat

RUN mkdir -p /tmp/carton
WORKDIR /tmp/carton
Expand Down
1 change: 1 addition & 0 deletions author/cpanm/cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ requires 'HTTP::Tiny', '0.054';
requires 'HTTP::Tinyish', '0.04';
requires 'JSON::PP', '2';
requires 'JSON::PP::Compat5006', '1.09';
requires 'Module::Build::Tiny', '==0.047'; # 0.048 doesn't work on perl 5.8.
requires 'Module::CPANfile';
requires 'Module::CoreList';
requires 'Module::Metadata';
Expand Down
4 changes: 3 additions & 1 deletion author/cpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN curl --compressed -sSL https://raw.githubusercontent.com/tokuhirom/Perl-Buil
RUN apk del perl patch

ENV PATH=/opt/perl-5.8/bin:$PATH
RUN curl --compressed -sSL https://cpanmin.us/ | perl - --notest Distribution::Metadata@0.06 App::FatPacker::Simple@0.09 Carton ExtUtils::PL2Bat
RUN curl --compressed -sSL https://cpanmin.us/ \
| perl - --notest \
Carton ExtUtils::PL2Bat

RUN mkdir -p /tmp/cpm
WORKDIR /tmp/cpm
Expand Down
2 changes: 1 addition & 1 deletion author/cpm/cpanfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
requires 'perl', '5.006';
requires "Devel::GlobalDestruction::XS";
requires "Module::Build::Tiny";
requires 'Module::Build::Tiny', '==0.047'; # 0.048 doesn't work on perl 5.8.
requires 'CPAN::Meta::Requirements', '==2.140'; # 2.141 doesn't support perl 5.8.

requires "App::cpm";
Expand Down

0 comments on commit 01c4170

Please sign in to comment.