8000 Allow user PERL5LIB in addition to Carton's · Issue #260 · perl-carton/carton · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow user PERL5LIB in addition to Carton's #260

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
srchulo opened this issue Oct 9, 2019 · 2 comments
Open

Allow user PERL5LIB in addition to Carton's #260

srchulo opened this issue Oct 9, 2019 · 2 comments

Comments

@srchulo
Copy link
srchulo commented Oct 9, 2019

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.

@KES777
Copy link
KES777 commented Nov 23, 2019

I can't seem to find a way to declare local module dependencies in cpanfile,

Probably you want to configure darkpan?

Or if your modules are not installable then how you plan carton will install them?

@srchulo
Copy link
Author
srchulo commented Dec 13, 2019

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
perl-carton#260 - Preserve any existing PERL5LIB that might be needed by the application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0