feature request: more info in --version like cpanm --version
gfx opened this issue · 2 comments
gfx commented
$ cpanm --version
cpanm (App::cpanminus) version 1.9018 (/usr/local/bin/cpanm)
perl version 5.032000 (/usr/local/Cellar/perl/5.32.0/bin/perl)
%Config:
archname=darwin-thread-multi-2level
installsitelib=/usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0
installsitebin=/usr/local/Cellar/perl/5.32.0/bin
installman1dir=/usr/local/Cellar/perl/5.32.0/share/man/man1
installman3dir=/usr/local/Cellar/perl/5.32.0/share/man/man3
sitearchexp=/usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0/darwin-thread-multi-2level
sitelibexp=/usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0
archlibexp=/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0/darwin-thread-multi-2level
privlibexp=/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0
%ENV:
@INC:
FatPacked::140192186965600=HASH(0x7f8109811e60)
/usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.32.0/lib/perl5/site_perl/5.32.0
/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0/darwin-thread-multi-2level
/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0
/usr/local/lib/perl5/site_perl/5.32.0
This is useful to debug environments that cannot be connected with ssh, like GitHub Actions.
skaji commented
If you use cpm in CI, I recommend using cpm with --show-build-log-on-failure
option.
It is roughly equivalent to
cpm install Module
if [ $? -ne 0 ]; then
cat ~/.perl-cpm/build.log
exit 1
fi
and ~/.perl-cpm/build.log
includes perl -V
.