-
Notifications
You must be signed in to change notification settings - Fork 97
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
exclude directories vendor_perl from @INC #257
Comments
Another option: add the module to "local", even if it exists in the default perl locations. |
I am facing this issue as well, but it's hard to place the blame. First, carton uses Menlo(basically cpanm 2.0) as a backend. Carton doesn't fully expose all of the Menlo/cpanm options, one being '--self-contained':
So you could adjust Carton::Builder::run_install to add this option; however, notice it says non-core modules. Digest::MD5 should be included by default in Perl core modules, so it could be the distro to blame. In my case the issue was with Module::Build, which is not actually listed in the core modules at https://perldoc.perl.org/ However, I found that perldoc probably shouldn't be the definitive source for which modules are core. In fact, Menlo uses Module::CoreList, where it shows that Module::Build is a core module:
Which cleared up my confusion about carton/Menlo not including what I believed was a non-core module. So if you are encountering this issue, it's one of these problems:
HTH |
|
I'm using carton to package a project together with all its perl dependencies.
The package is then installed on another server. Both servers (centos 7)
have the same OS.
All goes well until your project needs something like Digest::MD5.
The destination server does not have Digest::MD5, because it is
not part of the perl distribution. The build server did have that
module in the default locations, indirectly by installing something like
perl-App-cpanminus.
So the thing is: carton ignores what is already present in the default locations,
including those perl modules that were installed by yum. Shouldn't those
those directories be excluded?
The text was updated successfully, but these errors were encountered: