John Peacock wrote:
David Golden wrote:
[cc'd to perl-qa for awareness of the issue]
The switch to version objects in Module::Build means that the generated
META.yml now has this:
Is this with or without YAML itself loaded (so I know where to start)?
I did a little digging and this line doesn't work as expected:
Module::Build::Base line 3215:
$node->{version} = $node->{version}->stringify \
if exists $node->{version};
$node is a YAML::Node and the EXISTS function only checks for things
stored in the NODE property, not the HASH property. I'm not sure
exactly what those two are supposed to be representing, but the point is
that the "exists $node->{version}" returns false even though
"$node->{version}" is true.
Gee, I love YAML. (Sigh.)
Dropping the "exists" or changing that to "ref $node->{version}" makes
it all work just fine.
(Though technically, it really ought to check that the ref equals
"Module::Build::Version").
Regards,
David Golden