Anyway, what I have decided to do is just update META.yml manually.
Maybe in the future I'll just stop using version.pm for my modules'
$VERSION altogether, and just deal with versions manually as people
used to do. Perhaps instead version.pm should be recommended as a
utility module for working with/comparing versions, and not something
we should be using qv() for.

In any case, Module::Build needs to do ->numify prior to saving, then
everything will be happy.

Right now the META-spec isn't clear on that, so I think as a first
thing the META-spec needs to be clarified in that regard.

With respect to what David Golden mentioned a few posts back, I don't
think the version number on the files you have matters at all. They
just need to be different from each other. I use version.pm with
versions like 1.1.1, with META entries saying 1.001001. And the
resulting filename is something like Module-Name-1.1.1.tar.gz.

So far it has worked just fine for me and haven't experienced any
problems with it.

I have personally never released a module in the wild with something
like "v1.1" as the version id. I suppose it might be true that PAUSE
handles it properly, but as has been mentioned by others, like Adam
Kennedy, it might not be a good idea to do so. It ends up making
testing of modules more complicated, makes indexing more complicated,
makes parsing these files a bit more complicated.

The reason I've never released a module with a vstring-style version
number is because it causes test failures with Test::YAML::Meta. So it
might be a bug in Test::YAML::Meta, but I think it's easier for
everybody using META.yml files to have everything numified first. Then
you can compare one version number to another without having to worry
about Perl numbering semantics.

I'm glad that there seems to be a bit of discussion on this from
various people. Hopefully it leads to something being standardized.

Cheers,

Jonathan

On Sat, Apr 18, 2009 at 3:10 PM, Michael G Schwern <[email protected]> wrote:
> Jan Dubois wrote:
>> On Sat, 18 Apr 2009, Michael G Schwern wrote:
>>> Let's count the different ways we might have to parse a version.
>>>
>>> X    ok, sort it as a number.
>>> X.Y  hopefully that's a decimal number and not a dotted pair
>>> X.Y_Z        oh right, alpha versions.  Strip _Z off and sort as X.Y
>>
>> No, you just drop the '_' and sort numerically as X.YZ
>
> Thank you, that's exactly the point.  I can't even get it right!
>
>
> --
> 24. Must not tell any officer that I am smarter than they are, especially
>    if it's true.
>    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
>           http://skippyslist.com/list/
>

Reply via email to