Skip to content
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

/usr/local/share/perl5 shouldn't be in @INC #225

Open
akarelas opened this issue May 15, 2017 · 2 comments
Open

/usr/local/share/perl5 shouldn't be in @INC #225

akarelas opened this issue May 15, 2017 · 2 comments

Comments

@akarelas
Copy link

When I do carton exec, I see that /usr/local/share/perl5 is in @inc.

However exec's documentation clearly states that:

This command allows you to run your script in an isolated carton local environment, which means the perl 5 library path @inc are the only ones from perl's core library path, carton's library path (i.e. local/lib/perl5) and the current directory.

That directory is not perl's core library path. It contains modules installed by root with cpanm.

Could you please allow an option on exec that will exclude certain directories? Or exclude /usr/local/share/perl5 by default. Thanks.

@miyagawa
Copy link
Contributor

This behavior was removed in v0.9.56 because it was causing problems in many environments (#60, #70, #82), so the documentation should be updated instead.

If you really want this behavior, you can use lib::core::only module by yourself.

@akarelas
Copy link
Author

@miyagawa Thanks for your answer. How do you suggest I combine carton with lib::core::only?

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