Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eserte opened this issue Sep 22, 2023 · 1 comment
Closed

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

eserte opened this issue Sep 22, 2023 · 1 comment

Comments

@eserte
Copy link

eserte commented Sep 22, 2023

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 added a commit that referenced this issue Sep 22, 2023
@giterlizzi
Copy link
Owner

Thanks! Added core JSON module prerequisite.
Fixed in 2.02

giterlizzi added a commit that referenced this issue Nov 9, 2023
- Improved validation during encode and decode "purl" string
- Fixed CPAN repository URL
- FIX Qualifiers are case sensitive (#4)
- FIX PURLs containing multiple namespaces segments parse incorrectly (#5)
- FIX Incorrect parsing of PURLs that begin with "pkg:/" (#6)
- Improved "t/99-official-purl-test-suite.t" test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants