fastmail / Stick

10 stars 5 forks source link

dzil install fails under Perl 5.18.1 #3

Open mjdominus opened 10 years ago

mjdominus commented 10 years ago

The test suite fails catastrophically. When I run perl -Ilib t/collections/basic.t, Perl reports

Due to method name conflicts in roles 'Moose::Meta::Role::__ANON__::SERIAL::15' and 'Stick::Role::Collection::CanFilter', the methods 'ArrayRef' and 'is_ArrayRef' must be implemented or excluded by 'Stick::Class::BookCollection::Stick_Role_Collection_Pageable::Stick_Role_Collection_Mutable::Stick_Role_Collection_CanFilter::t_lib_LibraryExtras

Complete error output

perl -V output

mjdominus commented 10 years ago

This appears to be because Stick::Role::Collection::HasFilters imports ArrayRef and CodeRef from MooseX::Types::Moose and then lets them hang around again afterward. Sticking in use namespace::clean fixes this problem. I will prepare a patch shortly.