Perl-Toolchain-Gang / CPAN-Meta

Specifications for CPAN distribution META files
36 stars 40 forks source link

PERL_JSON_BACKEND supports no alternative backends but JSON.pm #128

Open karenetheridge opened 7 years ago

karenetheridge commented 7 years ago

I just got this lovely gem:

JSON 2.5 is required for $ENV{PERL_JSON_BACKEND} = 'Cpanel::JSON::XS'                                                 
 at /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/27.2/lib/5.27.2/CPAN/Meta.pm line 616.                         

...after daring to think that I could set PERL_JSON_BACKEND to my preferred backend. It looks like Parse::CPAN::Meta has no idea that other json encoders exist. No matter what you set it to, it tries to use 'JSON' instead.

@shadowcat-mst I think you were tinkering with this code at some point recently?

skaji commented 7 years ago

According to perldoc Parse::CPAN::Meta, you can use CPAN_META_JSON_BACKEND.