skaji/cpm

Can't locate ExtUtils/PL2Bat.pm

Closed this issue · 1 comments

When using shogo82148/actions-setup-perl@v1.3.0 to install Perl on windows,

I noticed that when using cpm via perl-actions/install-with-cpm I got the issue
Can't locate ExtUtils/PL2Bat.pm in @INC (you may need to install the ExtUtils::PL2Bat module)

I'm not sure who to blame here and if it's a cpm bug or actions-setup-perl one?
Switching to perl-actions/install-with-cpamm fixed the issue for me lol

more details: https://github.com/atoomic/Clone/runs/656823399?check_suite_focus=true

Run perl-actions/install-with-cpm@v1.3
C:\hostedtoolcache\windows\perl\5.30.2\x64\bin\perl.exe -MConfig -e "print \"$Config{installsitescript}/cpm\""
/cpm::set-output name=Get cpm from https%3A//raw.githubusercontent.com/skaji/cpm/master/cpm::
install_to d:\cpm
install: B::COW!
do_exec: C:\hostedtoolcache\windows\perl\5.30.2\x64\bin\perl.exe
C:\hostedtoolcache\windows\perl\5.30.2\x64\bin\perl.exe d:\cpm install --show-build-log-on-failure -v --no-test -g B::COW
##[error]Can't locate ExtUtils/PL2Bat.pm in @INC (you may need to install the ExtUtils::PL2Bat module) (@INC contains: FatPacked::13938184=HASH(0xd4ae08) C:/hostedtoolcache/windows/perl/5.30.2/x64/site/lib C:/hostedtoolcache/windows/perl/5.30.2/x64/lib) at d:\cpm line 599.
##[error]BEGIN failed--compilation aborted at d:\cpm line 599.
##[error]Compilation failed in require at d:\cpm line 587.
##[error]BEGIN failed--compilation aborted at d:\cpm line 587.
##[error]Compilation failed in require at d:\cpm line 858.
##[error]BEGIN failed--compilation aborted at d:\cpm line 858.
##[error]Compilation failed in require at d:\cpm line 387.
##[error]BEGIN failed--compilation aborted at d:\cpm line 387.
##[error]Compilation failed in require at d:\cpm line 383.
##[error]BEGIN failed--compilation aborted at d:\cpm line 383.
##[error]Compilation failed in require at d:\cpm line 379.
##[error]BEGIN failed--compilation aborted at d:\cpm line 379.
##[error]Compilation failed in require at d:\cpm line 299.
##[error]BEGIN failed--compilation aborted at d:\cpm line 299.
##[error]Compilation failed in require at d:\cpm line 1487.
##[error]BEGIN failed--compilation aborted at d:\cpm line 1487.
##[error]The process 'C:\hostedtoolcache\windows\perl\5.30.2\x64\bin\perl.exe' failed with exit code 2

reported to actions-setup-perl via shogo82148/actions-setup-perl#224

skaji commented

@atoomic Thanks. Fixed in 0.992.