Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-CopyTo CPAN distribution.

Report information
The Basics
Id: 53564
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-CopyTo

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

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



Subject: compile test fails if moose is installed
$ make test PERL_DL_NONLAZY=1 /usr/bin/perl5.10.1 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t .. Attribute (dir) of class Dist::Zilla::Plugin::CopyTo has no associated methods (did you mean to provide an "is" argument?) at /usr/lib/perl5/vendor_perl/5.10.1/Moose/Meta/Attribute.pm line 581 Moose::Meta::Attribute::_check_associated_methods('Moose::Meta::Attribute=HASH(0x1f45f98)') called at /usr/lib/perl5/vendor_perl/5.10.1/Moose/Meta/Class.pm line 253 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x1815b68)', 'dir', 'isa', 'ArrayRef', 'default', 'CODE(0x2154de0)', 'definition_context', 'HASH(0x219de40)') called at /usr/lib/perl5/vendor_perl/5.10.1/Moose.pm line 69 Moose::has('Moose::Meta::Class=HASH(0x1815b68)', 'dir', 'isa', 'ArrayRef', 'default', 'CODE(0x2154de0)') called at /usr/lib/perl5/vendor_perl/5.10.1/Moose/Exporter.pm line 288 Moose::has('dir', 'isa', 'ArrayRef', 'default', 'CODE(0x2154de0)') called at /home/jquelin/rpm/BUILD/Dist-Zilla-Plugin-CopyTo-0.07/blib/lib/Dist/Zilla/Plugin/CopyTo.pm line 12 require Dist/Zilla/Plugin/CopyTo.pm called at (eval 4) line 2 main::BEGIN() called at /home/jquelin/rpm/BUILD/Dist-Zilla-Plugin-CopyTo-0.07/blib/lib/Dist/Zilla/Plugin/CopyTo.pm line 0 eval {...} called at /home/jquelin/rpm/BUILD/Dist-Zilla-Plugin-CopyTo-0.07/blib/lib/Dist/Zilla/Plugin/CopyTo.pm line 0 eval 'package main; use Dist::Zilla::Plugin::CopyTo @{$args[0]}; 1; ;' called at /usr/lib/perl5/vendor_perl/5.10.1/Test/More.pm line 858 Test::More::_eval('package main;\x{a}use Dist::Zilla::Plugin::CopyTo @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0x17b4448)') called at /usr/lib/perl5/vendor_perl/5.10.1/Test/More.pm line 833 Test::More::use_ok('Dist::Zilla::Plugin::CopyTo') called at t/00-load.t line 6 main::BEGIN() called at /home/jquelin/rpm/BUILD/Dist-Zilla-Plugin-CopyTo-0.07/blib/lib/Dist/Zilla/Plugin/CopyTo.pm line 0 eval {...} called at /home/jquelin/rpm/BUILD/Dist-Zilla-Plugin-CopyTo-0.07/blib/lib/Dist/Zilla/Plugin/CopyTo.pm line 0 t/00-load.t .. ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.17 cusr 0.01 csys = 0.21 CPU) Result: PASS i guess you need to add a is => 'ro' in your attribute declaration.
resolved, thanks a lot