Subject: | Undeclared dependency Tk |
The test suite fails if Tk is not yet installed:
...
# Failed test 'use Tk::CanvasDirTree;'
# at t/Tk-CanvasDirTree.t line 9.
# Tried to use 'Tk::CanvasDirTree'.
# Error: Can't locate Tk/widgets.pm in @INC (you may need to install the Tk::widgets module) (@INC contains: /home/cpansand/.cpan/build/2020021604/Tk-CanvasDirTree-0.04-0/blib/lib /home/cpansand/.cpan/build/2020021604/Tk-CanvasDirTree-0.04-0/blib/arch /home/cpansand/.cpan/build/2020021604/Tie-StrictHash-1.0-0/blib/arch /home/cpansand/.cpan/build/2020021604/Tie-StrictHash-1.0-0/blib/lib /home/cpansand/.cpan/build/2020021604/Tie-StrictHash-1.0-0/blib/arch /home/cpansand/.cpan/build/2020021604/Tie-StrictHash-1.0-0/blib/lib /opt/perl-5.31.8/lib/site_perl/5.31.8/x86_64-linux /opt/perl-5.31.8/lib/site_perl/5.31.8 /opt/perl-5.31.8/lib/5.31.8/x86_64-linux /opt/perl-5.31.8/lib/5.31.8 .) at /home/cpansand/.cpan/build/2020021604/Tk-CanvasDirTree-0.04-0/blib/lib/Tk/CanvasDirTree.pm line 7.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2020021604/Tk-CanvasDirTree-0.04-0/blib/lib/Tk/CanvasDirTree.pm line 7.
# Compilation failed in require at t/Tk-CanvasDirTree.t line 9.
# BEGIN failed--compilation aborted at t/Tk-CanvasDirTree.t line 9.
# Looks like you failed 1 test of 1.
t/Tk-CanvasDirTree.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
...
Best is to declare Tk as a prerequisite in Makefile.PL/Build.PL/META.* to avoid unnecessary fail reports.