Hello,

I just wanted to update a  distribution and ensure that all the
> modules in a distribution have version number and they are all the
> same. I guess Dist::Zilla would do that, but this distribution I am
> patching use Module::Build.
>
> I found Test::HasVersion but as I can see it only checks if there is
> a version number. Not if they are the same.
>
> Do you have any suggestions for the above?

I've found Test::ConsistentVersion, but not tried it yet. It seems to claim to be able to do that (I found it via Test::Version, which has the combination of Test::HasVersion, Test::ConsistentVersion and Test::GreaterVersion as a goal – it does not seem to have reached it yet.)

A question of my own: I immediately thought of the "single point of truth" idiom, and would have written something like this:

package My::Sub::Module;
use My::Base::Module;
our $VERSION = $My::Base::Module::VERSION;

or similar. Would this trip up some version processing infrastructure somewhere?

Regards,
Ben Deutsch

Reply via email to