Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 125441
Status: rejected
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: dcantrell [...] cpan.org
Cc:
AdminCc:

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



Subject: version.pm breaks cpanm
We have this in the cpanfile for my project at work: requires 'autobox', '>= 2.86'; The most recent version of autobox says: use version 0.77; our $VERSION = version->declare('v3.0.1'); Which makes cpanm say: Argument "^C\0^A" isn't numeric in numeric ge (>=) at ... (see also https://github.com/chocolateboy/autobox/issues/13)
On Thu May 31 07:11:54 2018, DCANTRELL wrote: Show quoted text
> We have this in the cpanfile for my project at work: > > requires 'autobox', '>= 2.86'; > > The most recent version of autobox says: > > use version 0.77; our $VERSION = version->declare('v3.0.1'); > > Which makes cpanm say: > > Argument "^C\0^A" isn't numeric in numeric ge (>=) at ...
Please provide the entire error message. I believe this is an error in cpanm since the version object should never be exposed like that during normal operations. John
Show quoted text
> Please provide the entire error message. I believe this is an error in > cpanm since the version object should never be exposed like that > during normal operations. > > John
I suspect it is this block in cpanm that is actually broken: my $action = $local && !$reinstall ? $self->numify_ver($version) < $self->numify_ver($local) ? "downgraded" : "upgraded" : undef; The whole purpose of version.pm is to compare versions *as objects* not to diddle with the internals. John
On Thu May 31 21:02:34 2018, JPEACOCK wrote: Bug opened against App::cpanminus https://github.com/miyagawa/cpanminus/issues/574 Thanks John