Skip Menu |

This queue is for tickets about the Array-Compare CPAN distribution.

Report information
The Basics
Id: 119216
Status: resolved
Priority: 0/
Queue: Array-Compare

People
Owner: DAVECROSS [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: v2.12.2
Fixed in: v3.0.0



Subject: decreasing versions
Versions with 2 dots are converted to real numbers. 0.1.1 means 0.001001. So 0.1 > 0.1.1. Versions with one dot are real numbers. So 0.9 > 0.10. Best is to delete distributions that have bigger versions that latest (that will help new installations). And upload new distribution with correct version (that will help users that have older version installed). -- Alexandr Ciornii, http://chorny.net
On Mon Dec 12 14:03:25 2016, CHORNY wrote: Show quoted text
> Versions with 2 dots are converted to real numbers. 0.1.1 means > 0.001001. So 0.1 > 0.1.1. > Versions with one dot are real numbers. So 0.9 > 0.10. > Best is to delete distributions that have bigger versions that latest > (that will help new installations). And upload new distribution with > correct version (that will help users that have older version > installed).
I'm not sure I understand the problem. I had v12.2 on CPAN (that's the equivalent of v12.2.0) and now I've uploaded v12.2.1 and v12.2.2. So the version numbers aren't decreasing - they're increasing. If I'm misunderstanding something, then please explain further. Dave...
On Mon Dec 12 15:00:57 2016, DAVECROSS wrote: Show quoted text
> On Mon Dec 12 14:03:25 2016, CHORNY wrote:
> > Versions with 2 dots are converted to real numbers. 0.1.1 means > > 0.001001. So 0.1 > 0.1.1. > > Versions with one dot are real numbers. So 0.9 > 0.10. > > Best is to delete distributions that have bigger versions that latest > > (that will help new installations). And upload new distribution with > > correct version (that will help users that have older version > > installed).
> > > I'm not sure I understand the problem. I had v12.2 on CPAN (that's the > equivalent of v12.2.0) and now I've uploaded v12.2.1 and v12.2.2.
Previous version was without 'v' and it is important, because 12.2 is equivalent of v12.200.0 Show quoted text
> > So the version numbers aren't decreasing - they're increasing. > > If I'm misunderstanding something, then please explain further
perl -Mversion -E"say version->parse('2.12')->normal" v2.120.0 perl -Mversion -E"say version->parse('2.12.2')->normal" v2.12.2 perl -Mversion -E"say version->parse('2.12.2') <=> version->parse('2.12')" -1 -- Alexandr Ciornii, http://chorny.net
On Mon Dec 12 15:22:40 2016, CHORNY wrote: Show quoted text
> On Mon Dec 12 15:00:57 2016, DAVECROSS wrote:
> > On Mon Dec 12 14:03:25 2016, CHORNY wrote:
> > > Versions with 2 dots are converted to real numbers. 0.1.1 means > > > 0.001001. So 0.1 > 0.1.1. > > > Versions with one dot are real numbers. So 0.9 > 0.10. > > > Best is to delete distributions that have bigger versions that > > > latest > > > (that will help new installations). And upload new distribution > > > with > > > correct version (that will help users that have older version > > > installed).
> > > > > > I'm not sure I understand the problem. I had v12.2 on CPAN (that's > > the > > equivalent of v12.2.0) and now I've uploaded v12.2.1 and v12.2.2.
> > Previous version was without 'v' and it is important, because 12.2 is > equivalent of v12.200.0 >
> > > > So the version numbers aren't decreasing - they're increasing. > > > > If I'm misunderstanding something, then please explain further
> > perl -Mversion -E"say version->parse('2.12')->normal" > v2.120.0 > > perl -Mversion -E"say version->parse('2.12.2')->normal" > v2.12.2 > > perl -Mversion -E"say version->parse('2.12.2') <=> version-
> >parse('2.12')"
> -1
Thanks for the explanation. To be honest, that looks to me like a bug in version.pm. But it looks like I need to upload this as v3.0.0 in order to work around it. Cheers, Dave...
Version 3.0.0 is now available on CPAN.