App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

`clone-module` weirdness

Open gugod opened this issue 5 years ago • 9 comments

perlbrew 0.84 -- standalone install.

Documentation states <src version> goes first.

> perlbrew help clone-modules

This command re-installs all CPAN modules found from one installation to
another.

Usage: perlbrew clone-modules <src_version> <dst_version>

for example

    perlbrew clone-modules 5.26.1 5.27.7

Some info:

> perlbrew use v28@op
> perlbrew list-modules | wc -l
338
> perlbrew use v28@op2
> perlbrew list-modules | wc -l
1

I expect the following command to copy everything from v28@op to v28@op2, but the output suggests the opposite.

> perlbrew clone-modules v28@op v28@op2

Installing 0 modules from v28@op2 to v28@op ...
! Finding Perl on cpanmetadb failed.
--> Working on Perl
Fetching http://cpan.metacpan.org/authors/id/G/GS/GSAR/PerlInterp-0.02.tar.gz ... OK
Configuring PerlInterp-0.02 ... OK
Building and testing PerlInterp-0.02 ... FAIL
! Installing Perl failed. See /home/gugod/.cpanm/work/1539122485.25665/build.log for details. Retry with --force to force install it.

Interestingly, flipping the arguments gives the same error output:

> perlbrew clone-modules v28@op2 v28@op

Installing 0 modules from v28@op to v28@op2 ...
! Finding Perl on cpanmetadb failed.
--> Working on Perl
Fetching http://cpan.metacpan.org/authors/id/G/GS/GSAR/PerlInterp-0.02.tar.gz ... OK
Configuring PerlInterp-0.02 ... OK
Building and testing PerlInterp-0.02 ... FAIL
! Installing Perl failed. See /home/gugod/.cpanm/work/1539122548.25746/build.log for details. Retry with --force to force install it.

gugod avatar Oct 09 '18 22:10 gugod