miyagawa / cpanminus

cpanminus - get, unpack, build and install modules from CPAN
http://cpanmin.us
752 stars 213 forks source link

format json for scandeps fails to convert CPAN::Meta object #654

Open abc-mikey opened 1 year ago

abc-mikey commented 1 year ago

Format json for scandeps fails to convert CPAN::Meta object as "neither allow_blessed, convert_blessed nor allow_tags settings are enabled".

$cpanm --scandeps --format=json Cpanel::JSON::XS
--> Working on Cpanel::JSON::XS
Fetching http://www.cpan.org/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-4.32.tar.gz ... OK
Configuring Cpanel-JSON-XS-4.32 ... OK
encountered object 'CPAN::Meta=HASH(0x55a555ccfac0)', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /usr/share/perl5/vendor_perl/App/cpanminus/script.pm line 2666.
$cpanm --version
cpanm (App::cpanminus) version 1.7045 (/usr/bin/cpanm)
perl version 5.034001 (/usr/bin/perl)
$perl -MJSON::PP -E 'say "JSON::PP~$JSON::PP::VERSION"'
JSON::PP~4.06