builder: don't install cpanm with local::lib

Don't pass -I to cpan when installing App::cpanminus, because that may
ignore our env vars and put things into ~/perl5 .
This commit is contained in:
Rafael Kitover 2018-09-08 19:48:29 +00:00
parent 88f66ef6f8
commit 5b5e319378
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ num_cpus() {
setup_perl() {
if command -v perl >/dev/null; then
if ! command -v cpanm >/dev/null; then
perl -MApp::Cpan -e 'App::Cpan->run' -- -I -f -i App::cpanminus
perl -MApp::Cpan -e 'App::Cpan->run' -- -f -i App::cpanminus
fi
fi
}