Subject: | Test::CleanNamespaces blocks install of Moose |
Trying to upgrade my Moose installation, but it fails when trying to install Test-CleanNamespaces - which fails trying to use Moose in its tests:
----------------------------
[Test-CleanNamespaces-0.22] % head -n 8 t/moose-parameterized-role.t
use strict;
use warnings;
use Test::More 0.88;
plan skip_all => 'skipping for regular installs, due to possible circular dependency issues'
unless $ENV{AUTHOR_TESTING} || $ENV{AUTOMATED_TESTING};
use Test::Needs { 'Moose' => 0, 'MooseX::Role::Parameterized' => 0 };
[Test-CleanNamespaces-0.22] % head -n 8 t/moose-parameterized-role.t | perl -Mblib
Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 396.
BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.18/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm line 2.
Compilation failed in require at /System/Library/Perl/Extras/5.18/MooseX/Role/Parameterized.pm line 8.
BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.18/MooseX/Role/Parameterized.pm line 8.
Compilation failed in require at /Library/Perl/5.18/Test/Needs.pm line 25.
BEGIN failed--compilation aborted at - line 8.
[Test-CleanNamespaces-0.22] % head -n7 t/moose-parameterized-role.t | perl -Mblib
1..0 # SKIP skipping for regular installs, due to possible circular dependency issues
---------------------------------
Looks like it's getting its runtime/compiletime timing messed up. The Moose check gets executed (and blows up) before the skip_all, because it's in a `use` directive.