Subject: | Bump required version of MooseX::Types::Moose |
Date: | Tue, 15 Jun 2010 14:49:36 +0200 |
To: | bug-MooseX-MethodAttributes [...] rt.cpan.org |
From: | everybody <evrybod [...] gmail.com> |
MooseX::MethodAttributes::Role::Meta::Map requires
MooseX::Types::Moose 0.20 in the code as well as in the prereqs.
However, MooseX::Types::Moose doesn't define a $VERSION until 0.21.
So with MooseX::Types::Moose 0.20 installed, trying to install
MooseX::MethodAttributes, tests fail with:
Couldn't load class (MooseX::MethodAttributes::Role::Meta::Map)
because: MooseX::Types::Moose does not define
$MooseX::Types::Moose::VERSION--version check failed at
/home/everybody/.cpanplus/5.10.0/build/MooseX-MethodAttributes-0.22/blib/lib/MooseX/MethodAttributes/Role/Meta/Map.pm
line 11.
Proposed solution: bump MooseX::MethodAttributes' prereq on
MooseX::Types::Moose to 0.21 in the Makefile.PL / Meta.yaml (and
optionally, though sensibly, in the actual code:
lib/MooseX/MethodAttributes/Role/Meta/Map.pm line 11).
Interim workaround for other users bitten by this: upgrade
MooseX::Types manually to at least 0.21.
I hope this helps!