perl-carton / carton

Bundler or pip freeze for Perl
http://search.cpan.org/dist/carton
Other
494 stars 96 forks source link

minimum perl version not always respected #249

Open karenetheridge opened 5 years ago

karenetheridge commented 5 years ago

I haven't been able to trace the cause of this yet, but I'm opening this issue now in the hopes that someone else has seen this or has some insight.

I have a cpanfile with an entry: requires 'perl', '5.026'; to state a minimum perl requirement of 5.26.x. On a modern system (darwin running 5.26.3 under perlbrew with local::lib and all modules up to date), if I change the minimum perl to something like '5.030', I get an error like:

! Installing the dependencies failed: Your Perl (5.026003) is not in the range '5.030'

However, on another system (virtual environment using a prebuilt linux image with perl 5.24 and carton pre-installed), the perl requirement in the cpanfile is totally ignored. I cannot figure out why, as it seems that the installed versions of Carton, cpanm and Menlo are all the same (current). Was there a change to how the perl requirement is detected and checked, perhaps in a different module that is not up to date? If I knew which one, I can check for that at the top of cpanfile as a base tooling requirement.

karenetheridge commented 5 years ago

(possibly related to #232? although this doesn't explain the different behaviour in different environments.)

karenetheridge commented 5 years ago

also possibly related to #177