Subject: | Undeclared dependency Mojo::Promise |
The test suite fails if Mojo::Promise is not installed:
...
Output from '/usr/bin/make test':
PERL_DL_NONLAZY=1 "/opt/perl-5.22.3D/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use DataLoader;'
# at t/00-load.t line 8.
# Tried to use 'DataLoader'.
# Error: Can't locate Mojo/Promise.pm in @INC (you may need to install the Mojo::Promise module) (@INC contains: ... .) at /home/cpansand/.cpan/build/2019072103/DataLoader-0.01-0/blib/lib/DataLoader.pm line 166.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019072103/DataLoader-0.01-0/blib/lib/DataLoader.pm line 166.
# Compilation failed in require at t/00-load.t line 8.
# BEGIN failed--compilation aborted at t/00-load.t line 8.
...
According to https://metacpan.org/changes/distribution/Mojolicious#L495 Mojo::Promise was added in Mojolicious 7.53. So probably you have either to increase the minimum Mojolicious version in the prereq specifications, or add Mojo::Promise as a prerequisite.