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

Ability to migrate "to" a local::lib ? #3

Closed
castaway opened this issue Jan 1, 2023 · 1 comment
Closed

Ability to migrate "to" a local::lib ? #3

castaway opened this issue Jan 1, 2023 · 1 comment

Comments

@castaway
Copy link

castaway commented Jan 1, 2023

I'm trying to migrate a bunch of local::libs after an upgrade, so I was a bit surprised when this tool didnt default to "put the updated modules in the 'from' path" .. any reason why not?

@Grinnz
Copy link
Owner

Grinnz commented Jan 1, 2023

As documented:

Modules are installed to the destination Perl using cpanm. To influence the install location, activate a local::lib in your environment, or use the standard Perl and cpanm environment variables, such as "PERL_MM_OPT" in ExtUtils::MakeMaker, "PERL_MB_OPT" in Module::Build, and "PERL_CPANM_OPT" in cpanm.

There's an example documented as well:

Migrate modules to a custom local::lib location, using /opt/perl-5.28.0 to find modules within its search paths and using /opt/perl-5.28.1 to install to /opt/project/local:

$ env PERL_CPANM_OPT='-l /opt/project/local' perl-migrate-modules /opt/perl-5.28.0 /opt/perl-5.28.1

@Grinnz Grinnz closed this as completed Jan 1, 2023
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