Skip Menu |

This queue is for tickets about the CPAN-Site CPAN distribution.

Report information
The Basics
Id: 56033
Status: resolved
Priority: 0/
Queue: CPAN-Site

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

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



Subject: Test failure with perl 5.12.0 (version-related)
Hello Mark, the test suite of CPAN-Site fails with perl5.12.0-RC0: Invalid version format (dotted-decimal versions require at least three parts) at /usr/perl-5.12.0-RC0/lib/5.12.0/version.pm line 150. # Looks like you planned 53 tests but ran 1. # Looks like your test exited with 255 just after 1. t/10index.t .. Regards, Slaven
Subject: Re: [rt.cpan.org #56033] Test failure with perl 5.12.0 (version-related)
Date: Tue, 30 Mar 2010 09:45:57 +0200
To: Slaven_Rezic via RT <bug-CPAN-Site [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Slaven_Rezic via RT (bug-CPAN-Site@rt.cpan.org) [100328 19:37]: Show quoted text
> Sun Mar 28 15:37:36 2010: Request 56033 was acted upon. > Transaction: Ticket created by SREZIC > Queue: CPAN-Site > Subject: Test failure with perl 5.12.0 (version-related) > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56033 > > > Hello Mark,
Hi Slaven, Show quoted text
> Invalid version format (dotted-decimal versions require at least three > parts) at /usr/perl-5.12.0-RC0/lib/5.12.0/version.pm line 150.
I have seen these reports for all of my modules, but expected that people would revert useless backward-compatibility breaking changes. My modules contain version numbers like this: (added automagically) use vars '$VERSION'; $VERSION = '1.05'; When does 5.12 stop complainig? I do not have it installed (yet) Which of the following are correct? $VERSION = 1.05; $VERSION = '1.05.00'; $VERSION = 1.5.00; In my development model, I do not have a use for the third component. It seems silly to always add '.1' or such. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
On Tue Mar 30 03:47:36 2010, solutions@overmeer.net wrote: Show quoted text
> * Slaven_Rezic via RT (bug-CPAN-Site@rt.cpan.org) [100328 19:37]:
> > Sun Mar 28 15:37:36 2010: Request 56033 was acted upon. > > Transaction: Ticket created by SREZIC > > Queue: CPAN-Site > > Subject: Test failure with perl 5.12.0 (version-related) > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56033 > > > > > Hello Mark,
> > Hi Slaven, >
> > Invalid version format (dotted-decimal versions require at least three > > parts) at /usr/perl-5.12.0-RC0/lib/5.12.0/version.pm line 150.
> > I have seen these reports for all of my modules, but expected that > people would revert useless backward-compatibility breaking changes. > > My modules contain version numbers like this: (added automagically) > > use vars '$VERSION'; > $VERSION = '1.05'; > > When does 5.12 stop complainig? I do not have it installed (yet) > Which of the following are correct? > > $VERSION = 1.05; > $VERSION = '1.05.00'; > $VERSION = 1.5.00; > > In my development model, I do not have a use for the third component. > It seems silly to always add '.1' or such.
My understanding is that $VERSION = '1.05'; is still valid, and passes both the "lax" and "strict" test of version.pm. What seems to be not valid anymore, neither in lax nor strict test are versions like "1.28a" or generally versions with alpha components. I also think that the lax test should revert the former behavior. Regards, Slaven
Subject: Re: [rt.cpan.org #56033] Test failure with perl 5.12.0 (version-related)
Date: Tue, 30 Mar 2010 12:38:32 +0200
To: Slaven_Rezic via RT <bug-CPAN-Site [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Slaven_Rezic via RT (bug-CPAN-Site@rt.cpan.org) [100330 10:22]: Show quoted text
> My understanding is that $VERSION = '1.05'; is still valid, and passes > both the "lax" and "strict" test of version.pm. What seems to be not > valid anymore, neither in lax nor strict test are versions like "1.28a" > or generally versions with alpha components.
I only use the format \d+.\d\d but that produces these reports. Something to investigate. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
bug probably caused by development version of Perl