You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Carton::CLI overwrites any PERL5LIB set by the user:
local $ENV{PERL5LIB} = "$path/lib/perl5";
Would it make sense to instead do something like:
local $ENV{PERL5LIB} = "$path/lib/perl5:$ENV{PERL5LIB}";
So that Carton's lib is checked first, but any libs set by the user are checked after that?
My use case for this is that I can't seem to find a way to declare local module dependencies in cpanfile, so they don't exist in local. Instead I just set my PERL5LIB to use local modules.
I could include use lib at the top of my scripts, but I prefer not having to write that everywhere if possible.
The text was updated successfully, but these errors were encountered:
Yes, I think darkpan would help with that issue, that's a good suggestion.
However, I mean for this issue to be more a way to use your own PERL5LIB without carton overwriting it. Maybe an option could be provided to allow the existing PERL5LIB to not be overwritten?
ravenhall
added a commit
to ravenhall/carton
that referenced
this issue
Aug 5, 2020
Carton::CLI overwrites any
PERL5LIB
set by the user:Would it make sense to instead do something like:
So that Carton's lib is checked first, but any libs set by the user are checked after that?
My use case for this is that I can't seem to find a way to declare local module dependencies in cpanfile, so they don't exist in local. Instead I just set my PERL5LIB to use local modules.
I could include
use lib
at the top of my scripts, but I prefer not having to write that everywhere if possible.The text was updated successfully, but these errors were encountered: