giterlizzi / perl-URI-PackageURL

Perl extension for Package URL
Artistic License 2.0
4 stars 1 forks source link

Can't locate JSON.pm in @INC #4

Closed eserte closed 1 year ago

eserte commented 1 year ago

The test suite fails if JSON.pm is not installed --- probably it needs to be declared as a prerequisite:

#   Failed test 'use URI::PackageURL::CLI;'
#   at t/00-load.t line 10.
#     Tried to use 'URI::PackageURL::CLI'.
#     Error:  Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/lib /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/arch /usr/local/lib/perl5/site_perl/mach/5.34 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.34/mach /usr/local/lib/perl5/5.34) at /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/lib/URI/PackageURL/CLI.pm line 12.
# BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/lib/URI/PackageURL/CLI.pm line 12.
# Compilation failed in require at t/00-load.t line 10.
# BEGIN failed--compilation aborted at t/00-load.t line 10.
# URI::PackageURL 2.01, Perl 5.034001, /usr/local/bin/perl
# Looks like you failed 1 test of 3.
t/00-load.t ...................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
...
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/lib /usr/home/cpansand/.cpan/build/2023091719/URI-PackageURL-2.01-5/blib/arch /usr/local/lib/perl5/site_perl/mach/5.34 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.34/mach /usr/local/lib/perl5/5.34) at t/40-cli.t line 7.
BEGIN failed--compilation aborted at t/40-cli.t line 7.
t/40-cli.t ....................... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
giterlizzi commented 1 year ago

Thanks! Added core JSON module prerequisite. Fixed in 2.02