Subject: | optional dependency breakage |
Date: | Wed, 12 Mar 2014 10:33:30 +0000 |
To: | bug-Dancer-Plugin-DBIC [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
If I test Dancer-Plugin-DBIC without MooseX::Types::LoadableClass
installed, I get this failure:
PERL_DL_NONLAZY=1 /opt/perl-5.18.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ........... ok
t/01-single-schema.t ..... ok
t/02-multiple-schemas.t .. ok
t/03-dynamic-schemas.t ... ok
t/04-testapp.t ........... ok
t/05-schema-aliases.t .... ok
DBIx::Class::Schema::catch {...} (): Unable to load storage class DBIx::Class::Storage::DBI::Replicated: {UNKNOWN}: The following modules are required for Replication MooseX::Types::LoadableClass >= 0.011 (see DBIx::Class::Optional::Dependencies for details)
BEGIN failed--compilation aborted at /opt/perl-5.18.2/lib/site_perl/5.18.2/DBIx/Class/Storage/DBI/Replicated.pm line 7.
Compilation failed in require at /opt/perl-5.18.2/lib/site_perl/5.18.2/Class/C3/Componentised.pm line 150. at /opt/perl-5.18.2/lib/site_perl/5.18.2/Class/C3/Componentised.pm line 155 at /opt/perl-5.18.2/cpan/build/Dancer-Plugin-DBIC-0.2000-HKfCL4/blib/lib/Dancer/Plugin/DBIC.pm line 56
# Looks like you planned 5 tests but ran 2.
# Looks like your test exited with 255 just after 2.
t/06-replicated.t ........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/5 subtests
Installing MooseX::Types::LoadableClass resolves it. This seems to be
an `optional' dependency that's not really optional. Don't know which
distro ought to be declaring it as a hard dependency. For now I'm using
a distropref to add it as a dependency of Dancer-Plugin-DBIC.
-zefram