Skip Menu |
 

This queue is for tickets about the Perl-Version CPAN distribution.

Report information
The Basics
Id: 114541
Status: stalled
Priority: 0/
Queue: Perl-Version

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

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



Subject: Strange dropping of 0's with _ versions
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-26419-1463809294-1717.0-0-0 [...] rt.cpan.org>
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 307

Probably shouldn't be setting version to have an underscore with this ... but ... either way, this was surprising.

 

perl-reversion -set 1.000005_001

...

+our $VERSION   = '1.000005_01';

 

uuuuh.

 

MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-26419-1463809294-1717.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-26419-1463809294-1717.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19786-1464468456-138.114541-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 502
Download (untitled) / with headers
text/plain 502b
On Sat May 21 01:41:34 2016, KENTNL wrote: Show quoted text
> Probably shouldn't be setting version to have an underscore with this > ... but > ... either way, this was surprising. > > perl-reversion -set 1.000005_001 > > ... > > +our $VERSION = '1.000005_01'; > > uuuuh.
The output format is hardcoded and there isn't a convenient way to record the number of digits in the dev version. I think adding this sort of logic would require quite a bit of rewriting. If someone has time for that, send a pull request. :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.