Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 46892
Status: resolved
Worked: 30 min
Priority: 0/
Queue: CPANPLUS

People
Owner: BINGOS [...] cpan.org
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.8601
Fixed in: (no value)



Subject: Fails to downgrade on URL
I've got MooseX::Types .11 installed, I wanted to install .10 so I tried to do it with cpanp and all I got was fail. root@x60s:/home/ecarroll/code/perl/MX-T/t# cpanp install http://search.cpan.org/CPAN/authors/id/J/JJ/JJNAPIORK/MooseX-Types-0.10.tar.gz Installing MooseX::Types (0.10) *** Install log written to: /root/.cpanplus/install-logs/MooseX-Types-0.10-1244827168.log Module 'MooseX::Types' installed successfully No errors installing all modules root@x60s:/home/ecarroll/code/perl/MX-T/t# perl -MMooseX::Types\ 9999 MooseX::Types version 9999 required--this is only version 0.11. BEGIN failed--compilation aborted. ***HOWEVER*** It works if I uninstall first root@x60s:/home/ecarroll/code/perl/MX-T/t# cpanp CPANPLUS::Shell::Default -- CPAN exploration and module installation (v0.8601) *** Please report bugs to <bug-cpanplus@rt.cpan.org>. *** Using CPANPLUS::Backend v0.8601. *** ReadLine support available (try 'i Term::ReadLine::Perl'). *** Type 'p' now to show start up log Did you know... You can turn off these tips using 's conf show_startup_tip 0' CPAN Terminal> uninstall MooseX::Types This will uninstall the following modules: MooseX::Types Note that if you installed them via a package manager, you probably should use the same package manager to uninstall them Are you sure you want to continue? [y/N]: y Uninstalling 'MooseX::Types' Module 'MooseX::Types' uninstalled successfully All modules uninstalled successfully CPAN Terminal> install http://search.cpan.org/CPAN/authors/id/J/JJ/JJNAPIORK/MooseX-Types-0.10.tar.gz Installing MooseX::Types (0.10) Running [/usr/bin/perl /usr/bin/cpanp-run-perl /root/.cpanplus/5.10.0/build/MooseX-Types-0.10/Makefile.PL ]... *** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... [Core Features] - Test::More ...loaded. (0.86 >= 0.8) - FindBin ...loaded. (1.49) - Moose ...loaded. (0.81 >= 0.61) - Sub::Install ...loaded. (0.925 >= 0.924) - namespace::clean ...loaded. (0.11 >= 0.08) - Carp ...loaded. (1.08) - Carp::Clan ...loaded. (6.00 >= 6) - Scalar::Util ...loaded. (1.21 >= 1.19) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Writing Makefile for MooseX::Types Running [/usr/bin/make test]... PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/10_moose-types.t t/11_library-definition.t t/12_wrapper-definition.t t/13_typedecorator.t t/14_compatibility-sub-exporter.t t/15_recursion.t t/16_introspection.t t/10_moose-types.t ................. ok t/11_library-definition.t .......... ok t/12_wrapper-definition.t .......... ok t/13_typedecorator.t ............... ok t/14_compatibility-sub-exporter.t .. ok t/15_recursion.t ................... ok t/16_introspection.t ............... ok All tests successful. Files=7, Tests=185, 2 wallclock secs ( 0.05 usr 0.02 sys + 2.22 cusr 0.15 csys = 2.44 CPU) Result: PASS *** Install log written to: /root/.cpanplus/install-logs/MooseX-Types-0.10-1244827360.log Module 'MooseX::Types' installed successfully No errors installing all modules CPAN Terminal> CPAN Terminal> Exiting CPANPLUS shell root@x60s:/home/ecarroll/code/perl/MX-T/t# perl -MMooseX::Types\ 9999 MooseX::Types version 9999 required--this is only version 0.10. BEGIN failed--compilation aborted.
On Fri Jun 12 13:23:49 2009, ECARROLL wrote: Show quoted text
> I've got MooseX::Types .11 installed, I wanted to install .10 so I > tried > to do it with cpanp and all I got was fail. > > root@x60s:/home/ecarroll/code/perl/MX-T/t# cpanp install > http://search.cpan.org/CPAN/authors/id/J/JJ/JJNAPIORK/MooseX-Types- > 0.10.tar.gz > Installing MooseX::Types (0.10) > *** Install log written to: > /root/.cpanplus/install-logs/MooseX-Types-0.10-1244827168.log > > Module 'MooseX::Types' installed successfully > No errors installing all modules >
This isn't necessarily 'fail', it has determined that you already have the latest version installed so doesn't install the older version. The usual way to way to deal with this would be to add '--force' to the command, to tell it to do the action anyways. Cheers.
Show quoted text
> This isn't necessarily 'fail', it has determined that you already have > the latest version installed so doesn't install the older version.
It says explicitly that it is installing all modules, from the users perspective it appears to have worked. Show quoted text
> The usual way to way to deal with this would be to add '--force' to > the command, to tell it to do the action anyways.
Which is OK, but maybe the shell should suggest this if it attempts to install a version less than the currently installed version -- Evan Carroll perl@evancarroll.com http://www.evancarroll.com
Hi, It does if 's conf verbose 1' is set in the configuration. CPAN Terminal> i http://search.cpan.org/CPAN/authors/id/J/JJ/JJNAPIORK/MooseX-Types-0.10.tar.gz Installing MooseX::Types (0.10) [MSG] Module 'MooseX::Types' already up to date, won't install without force *** Install log written to: /root/.cpanplus/install-logs/MooseX-Types-0.10-1255555197.log Module 'MooseX::Types' installed successfully No errors installing all modules CPAN Terminal> It is also in the log that is produced: bash-3.2# cat /root/.cpanplus/install-logs/MooseX-Types-0.10-1255555197.log [MSG] [Wed Oct 14 22:19:57 2009] Module 'MooseX::Types' already up to date, won't install without force bash-3.2#