Skip Menu |

This queue is for tickets about the CPAN-Meta-Check CPAN distribution.

Report information
The Basics
Id: 77412
Status: resolved
Priority: 0/
Queue: CPAN-Meta-Check

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: CPAN::Meta version dependency not signalled
Date: Thu, 24 May 2012 20:22:50 +0100
To: bug-CPAN-Meta-Check [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
CPAN::Meta::Check depends on CPAN::Meta version 2.120920. However, if an older version of CPAN::Meta is installed, C:M:C's Makefile.PL doesn't warn about a missing prerequisite. The result is that the CPAN shell doesn't upgrade C:M, and then tests fail when an older C:M returns a Version::Requirements object instead of the expected CPAN::Meta::Requirements object. Not only should this be detected at configure time, it would be nice to detect it cleanly at runtime. C:M:C has "use CPAN::Meta::Requirements 2.120920" to enforce the version of C:M:R, but since C:M:R is in a separate distribution from C:M, it's easy for C:M:R to be up to date alongside an old C:M. I suggest that C:M:C should also do a "use CPAN::Meta 2.120920". -zefram
On Thu May 24 15:23:05 2012, zefram@fysh.org wrote: Show quoted text
> CPAN::Meta::Check depends on CPAN::Meta version 2.120920. However, > if an older version of CPAN::Meta is installed, C:M:C's Makefile.PL > doesn't warn about a missing prerequisite. The result is that the > CPAN shell doesn't upgrade C:M, and then tests fail when an older > C:M returns a Version::Requirements object instead of the expected > CPAN::Meta::Requirements object. > > Not only should this be detected at configure time, it would be nice to > detect it cleanly at runtime. C:M:C has "use CPAN::Meta::Requirements > 2.120920" to enforce the version of C:M:R, but since C:M:R is in a > separate distribution from C:M, it's easy for C:M:R to be up to date > alongside an old C:M. I suggest that C:M:C should also do a "use > CPAN::Meta 2.120920".
Right. When I released C::M::Check, C::M::Requirements was still part of of CPAN::Meta. Your approach sounds the easiest way to solve this, though technically speaking it's more of a «conflicts <= X» problem. Fixed in 0.004 Leon