Subject: | Dependencies in Mouse vary depending where Mouse is built. |
Date: | Mon, 21 Dec 2009 15:38:06 +0000 |
To: | bug-Mouse [...] rt.cpan.org |
From: | Tomas Doran <t0m [...] state51.co.uk> |
The following stanza:
if(eval{ require MouseX::AttributeHelpers }){
if(!eval{ MouseX::AttributeHelpers->VERSION(0.06) }){
requires 'MouseX::AttributeHelpers' => 0.06;
}
}
means that MouseX::AttributeHelpers is included as a requirement in the
current Mouse release..
Oops - circular dependencies bad..
Something like this:
Meta->{values}{build_requires} = [ grep {
my $ok = 1;
foreach my $module (qw/ MouseX::AttributeHelpers /) {
if ($_->[0] =~ /$module/) {
$ok = 0;
last;
}
}
$ok;
} @{Meta->{values}{build_requires}} ];
}
just before the WriteAll(); would be a good idea to remove the incorrect
build dependencies from META.yml..
I'm happy to fix this myself (if people are ok with this solution?), but
wanted to log a bug so that we're all aware of the issue, and any
discussion can happen if people think it is needed.
Cheers
t0m