thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

pinto pull error: Invalid perl version 5.020000 #163

Closed benrifkah closed 10 years ago

benrifkah commented 10 years ago

I'm getting the following error when attempting to pull a module after setting the target_perl_version for the latest perl 5.20.0 (5.020000)

# init the repo and see the default perl version
$ pinto -r pinto_test_repo init
$ pinto -r pinto_test_repo/ props
target_perl_version = 5.014002
description = The master stack

# pulling a simple module works fine
$ pinto -r pinto_test_repo/ pull -M --no-fail Acme::Pi
......

# setting the stack perl version and pulling the same module fails
$ pinto -r pinto_test_repo/ props -P target_perl_version=5.020000
$ pinto -r pinto_test_repo/ pull -M --no-fail Acme::Pi
Invalid perl version 5.020000
Target Acme::Pi~0 failed...continuing anyway
No changes were made

This happens when I'm using either perl 5.14.2 or 5.20.0. I'm pretty sure I'm using the proper version syntax since I can set the target_perl_version using 5.018002 and that works as well. (pinto version 0.09994)

thaljef commented 10 years ago

I need to make a new release. I think I can get that done later this week.

But in the interim, you can delete (or set aside) your current Pinto installation, and then reinstall using the usual getpinto.stratopan.com URL. That will get you get version 0.09994 again but with the latest version of Module::CoreList that will support 5.20.

Sorry I don't have a more elegant solution at the moment.

thaljef commented 10 years ago

There is another bug here too -- If the target_perl_version is invalid, it should complain as soon as you set it, rather than waiting for you to try a command.

5.020000 is valid, Pinto just thinks it isn't because it doesn't have the latest Module::CoreList.

benrifkah commented 10 years ago

Thanks Jeff, after I deleted my pinto install and reinstalled I was able to use 5.020000 as the target_perl_version.

thaljef commented 10 years ago

Fixed and released as Pinto 0.09995.