Subject: | Fails if neither unzip nor Archive::Zip are installed |
On some of my smokers:
...
You do not have 'Archive::Zip' installed - Please install it as soon as possible. at /usr/home/cpansand/.cpan/build/2018111708/GitHub-Extract-0.02-0/blib/lib/GitHub/Extract.pm line 228.
No '/bin/unzip' program found at /usr/home/cpansand/.cpan/build/2018111708/GitHub-Extract-0.02-0/blib/lib/GitHub/Extract.pm line 228.
Extract failed; no extractors available at /usr/home/cpansand/.cpan/build/2018111708/GitHub-Extract-0.02-0/blib/lib/GitHub/Extract.pm line 228.
# Failed test 'https://github.com/adamkennedy/PPI/zipball/master'
# at t/02_main.t line 51.
# Failed test '->extract_path defined'
# at t/02_main.t line 56.
Use of uninitialized value in -d at t/02_main.t line 57.
# Failed test '->extract_path exists'
# at t/02_main.t line 57.
# Failed test 'Got at least one file'
# at t/02_main.t line 61.
# Looks like you failed 4 tests of 19.
t/02_main.t .....
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/19 subtests
...
Actually, unzip is installed here, but on freebsd systems it's located in /usr/bin/unzip
So probably this path should also be checked (or everything in $PATH).