Perl-Toolchain-Gang / CPAN-Meta

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

warning is not issued #123

Open KES777 opened 7 years ago

KES777 commented 7 years ago

When create next config:

meta_merge =>  { resources =>  {
    bugtracker =>  'url',
}}

and run ./Build.PL the warning is not issued about url is not valid. and this field silently missed at MYMETA.json.

karenetheridge commented 7 years ago

This is probably a Module::Build problem, not CPAN::Meta. CPAN::Meta has proper validation on that field:

https://metacpan.org/source/DAGOLDEN/CPAN-Meta-2.150010/lib/CPAN/Meta/Validator.pm#L151

KES777 commented 7 years ago

Ok. That is probably due to this issue

Leont commented 7 years ago

Module::Build uses CPAN::Meta::Converter via CPAN::Meta::Merge. As this fragment shows:

use CPAN::Meta::Converter;
use Data::Dumper;

my $c = CPAN::Meta::Converter->new({ resources =>  { bugtracker => 'url' } });
print Dumper($c->upgrade_fragment(version => 2));

The observed behavior follows out of CPAN::Meta::Converters behavior.