Skip Menu |

This queue is for tickets about the Module-Version CPAN distribution.

Report information
The Basics
Id: 129478
Status: open
Priority: 0/
Queue: Module-Version

People
Owner: Nobody in particular
Requestors: mhasch-cpanbugs [...] cozap.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.201
Fixed in: (no value)



Subject: [PATCH] [v0.201] $Module::Version::App::VERSION does not match provides in META.yml
CPAN will needlessly upgrade Module-Version-0.201 to Module-Version-0.201 since the version of Module::Version::App is actually lower than what the metadata promises. This simple patch could fix this. Yours, -Martin
Subject: Module-Version-0.201-MHASCH-01.patch
diff -rup Module-Version-0.201.orig/lib/Module/Version/App.pm Module-Version-0.201/lib/Module/Version/App.pm --- Module-Version-0.201.orig/lib/Module/Version/App.pm 2019-02-24 21:58:50.000000000 +0100 +++ Module-Version-0.201/lib/Module/Version/App.pm 2019-05-07 08:50:24.095060936 +0200 @@ -9,7 +9,7 @@ use Carp qw< croak >; use Getopt::Long qw( :config no_ignore_case ); use Module::Version 'get_version'; -our $VERSION = '0.13'; +our $VERSION = '0.201'; sub new { return bless {}, $_[0] }
On 2019-05-07 03:13:33, MHASCH wrote: Show quoted text
> CPAN will needlessly upgrade Module-Version-0.201 to > Module-Version-0.201 since the version of Module::Version::App > is actually lower than what the metadata promises. > > This simple patch could fix this.
It's also interesting why the META files have the wrong version listed for Module::Version::App: https://metacpan.org/source/XSAWYERX/Module-Version-0.201/META.json#L59 A Dist::Zilla problem maybe? (Without the provides entry in META.* probably nothing has to be done, as PAUSE would probably find out the correct version)
On Wed Jan 29 10:36:20 2020, SREZIC wrote: Show quoted text
> It's also interesting why the META files have the wrong version listed > for Module::Version::App: > https://metacpan.org/source/XSAWYERX/Module-Version- > 0.201/META.json#L59 > A Dist::Zilla problem maybe?
Sawyer might have intended to keep version numbers of all modules of the distro in synch (and configured or chosen his release tools accordingly) while failing to actually enforce this in the code. -Martin