Skip Menu |

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

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

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

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



Subject: Fails when testing Moose- and Moose::Role-using modules
If a distribution uses Moose::Role and Moose, then the tests produced by this plugin fail since Moose is loaded first and provides a function named "meta". See the output below: t/000-report-versions.t ...... 1/? # Carp version is 1.11 # Cwd version is 3.31 t/000-report-versions.t ...... 3/? # Dist::Zilla version is 1.100711 # Dist::Zilla::Plugin::Repository version is 0.11 # Dist::Zilla::Role::AfterRelease version is 1.100711 # Dist::Zilla::Role::Plugin version is 1.100711 # Dist::Zilla::Role::Releaser version is 1.100711 # English version is 1.04 # ExtUtils::MakeMaker version is 6.56 # File::Find version is 1.14 # File::Temp version is 0.22 # Modern::Perl version is 1.03 # Moose version is 1.01 # Failed test 'use Moose::Role;' # at t/000-report-versions.t line 484. # Tried to use 'Moose::Role'. # Error: You already have a &meta function, but it does not return a Moose::Meta::Role at /usr/local/tools/perl/lib/site_perl/5.10.1/x86_64-linux-thread- multi/Moose/Role.pm line 125 # Moose::Role::init_meta ('Moose::Role', 'for_class', 'main', 'metaclass', undef) called at /usr/local/tools/perl/lib/site_perl/5.10.1/x86_64-linux-thread- multi/Moose/Exporter.pm line 354 # Moose::Exporter::__ANON__('Moose::Role') called at (eval 330) line 2 # main::BEGIN() called at (eval 330) line 2 # eval {...} called at (eval 330) line 2 # eval 'package main; # use Moose::Role @{$args[0]}; # 1; # # ;' called at /usr/local/tools/perl/lib/5.10.1/Test/More.pm line 858 # Test::More::_eval('package main;\x{a}use Moose::Role @{$args [0]};\x{a}1;\x{a}', 'ARRAY(0x1c30f358)') called at /usr/local/tools/perl/lib/5.10.1/Test/More.pm line 833 # Test::More::use_ok('Moose::Role') called at t/000-report- versions.t line 484 # main::BEGIN() called at (eval 330) line 2 # eval {...} called at (eval 330) line 2 # BEGIN failed--compilation aborted at (eval 330) line 2. Bailout called. Further testing stopped: can't load Moose::Role # Tests were run but no plan was declared and done_testing() was not seen. FAILED--Further testing stopped: can't load Moose::Role make: *** [test_dynamic] Error 255 [DZ] error running make test
In v1.100880, Moose::Role is skipped now. That's because Moose::Role is part of the Moose dist, so you'll certainly use Moose.pm itself and get the relevant version number that way. Thanks for reporting it! Marcel