in reply to Re: <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
in thread <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.

Then use Your::Dist::Version from every module in the distribution. Everything that does has the One True Version inserted into its namespace.
But it won't work.

The CPAN indexer searches for lines in modules that seems to set the VERSION number, extracts that line, and executes it. Just that line. Nothing more. Any clever tricks you'd like to use will work at run time (for instance, if someone does use Module VERSION;), but the important part, the CPAN indexer, won't be able to find the version number.

  • Comment on Re^2: <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
  • Download Code

Replies are listed 'Best First'.
Re^3: <pkg>::VERSION, git, hashes, shipit, Class::MOP, Moose, perl core support - what NOW makes sense.
by moritz (Cardinal) on Apr 21, 2009 at 22:37 UTC
    Sorry if that might seem ignorant, but why is that a problem? Can't the CPAN indexer simply take the version from the META.yaml and take that as a default version?

    Then all you have to do is to make sure that the meta data and Your::Dest::Version agree.