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