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

can select cpanm "-l" or "-L" #181

Open
wants to merge 1 commit into
base: 1.1
Choose a base branch
from

Conversation

masaki
Copy link
Contributor

@masaki masaki commented Aug 12, 2014

allow following option:

carton install --skip-installed

it selects cpanm options -l | --local-lib and -L | --local-lib-contained.
(-l can skip already installed modules)

@miyagawa
Copy link
Contributor

Is this to speed up installations or for any other specific purpose?

@masaki
Copy link
Contributor Author

masaki commented Aug 13, 2014

To speed up installations.
Carton 1.x series does not use "lib::core::only" no longer. So, I think it's not necessary to use "-L" option.

@miyagawa
Copy link
Contributor

Hm that kind of defeats the purpose of Carton if i understand correctly.

carton install should always use the -L option, to install modules the exact same version in the snapshot, even they are satisfied in site_perl. For instance if you have Moose 1.20 in your site_perl and your cpanfile has requires "Moose", "1.10", using -l will skip the installation even though the snapshot might have 1.11.

if all you need is to speed up the installation on updates, you can use the shared installation path using PERL_CARTON_PATH so that deploying a new version of the app into a different directory (with capistrano style) will not install the whole modules again.

@masaki
Copy link
Contributor Author

masaki commented Aug 14, 2014

I already tried the capistrano style that's fine. but at 1st time, I spent 10 minutes to install modules at my integration test repository for Jenkins jobs. so, my concern was toward to speed up 😄

For instance if you have Moose 1.20 in your site_perl and your cpanfile has requires "Moose", "1.10", > using -l will skip the installation even though the snapshot might have 1.11.

oh, I missed that case. thanks.

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

Successfully merging this pull request may close these issues.

2 participants