Hi:
When the version pragma is used, META.yml creates files which have a
stringification of the $VERSION. This causes problems if version
objects are used, since the object becomes stringified as a v-string,
like: "v1.1" vs the "1.001" format that CPAN expects.
I would suggest checking if $VERSION->isa('version') and then do:
$VERSION->numify.
It's probably easier to change this behaviour of M::B during ./Build
dist than to change, ie, the CPAN indexer and Test::YAML::Meta (where
this bug has also been filed, because the META-spec is a bit ambigious
here). Perhaps there also needs to be clarification added to the
META-spec to say that it either can or cannot be a v-string.
This bug has been accepted into the tracker as
https://rt.cpan.org/Public/Bug/Display.html?id=42478 in January of
this year, but I don't know if it's been stalled or what has happened
there.
It really shouldn't take too much work to fix, and I'd be glad to
contribute a patch if necessary.
Cheers,
Jonathan
(PAUSE: FREQUENCY)