Make it obvious why we call cpanm with an invalid mirror URL (was: error in package build about wrong use of cpanm)
[ 71s] + cpanm --installdeps --with-feature=test . [ 73s] ! [ 73s] ! Can't write to /usr/lib/perl5/site_perl/5.28.1 and /usr/bin: Installing modules to /home/abuild/perl5 [ 73s] ! To turn off this warning, you have to do one of the following: [ 73s] ! - run me as a root or with --sudo option (to install to /usr/lib/perl5/site_perl/5.28.1 and /usr/bin) [ 73s] ! - Configure local::lib in your existing shell to set PERL_MM_OPT etc. [ 73s] ! - Install local::lib by running the following commands [ 73s] ! [ 73s] ! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) [ 73s] !
I guess we can just configure cpanm call with
#1 Updated by okurz over 1 year ago
- Subject changed from error in package build about wrong use of cpanm to Make it obvious why we call cpanm with an invalid mirror URL (was: error in package build about wrong use of cpanm)
I think I was just being confused by what that cpanm call should do. There seems to be nothing wrong but the intention of this call in the tests could be made more obvious, e.g. that cpanm is called only to ensure that we have all dependencies already properly covered with the installed packages.