From 44d19eb5d1ee3e4337992aec4734b299f9100587 Mon Sep 17 00:00:00 2001 From: Shoichi Kaji Date: Mon, 29 Apr 2024 00:45:34 +0900 Subject: [PATCH] fix Module::Build::Tiny --- .github/workflows/test.yml | 4 ++++ xt/lib/CLI.pm | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81feb0e..5fecb0a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,10 @@ jobs: run: perl -V - name: Install Dependencies run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure + if: matrix.perl-version != '5.8-buster' + - name: Install Dependencies + run: curl -fsSL --compressed https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --with-develop --with-recommends --show-build-log-on-failure --resolver Fixed,CPAN::Meta::Requirements@2.140,Module::Build::Tiny@0.047 + if: matrix.perl-version == '5.8-buster' - name: Run Tests run: prove -lr --timer t xt diff --git a/xt/lib/CLI.pm b/xt/lib/CLI.pm index 48b1e2c..c6467d6 100644 --- a/xt/lib/CLI.pm +++ b/xt/lib/CLI.pm @@ -50,7 +50,8 @@ sub cpm_install { my $local = $_LOCAL || tempdir DIR => $TEMPDIR; my $home = $_HOME || tempdir DIR => $TEMPDIR; if ($] < 5.010) { - unshift @argv, "--resolver", 'Fixed,CPAN::Meta::Requirements@2.140'; + unshift @argv, "--resolver", + 'Fixed,CPAN::Meta::Requirements@2.140,Module::Build::Tiny@0.047'; } my ($out, $err, $exit) = capture { local %ENV = %ENV;