Skip Menu |

This queue is for tickets about the AnyEvent-AIO CPAN distribution.

Report information
The Basics
Id: 100983
Status: rejected
Priority: 0/
Queue: AnyEvent-AIO

People
Owner: MLEHMANN [...] cpan.org
Requestors: AVKHOZOV [...] cpan.org
Cc: ribasushi [...] leporine.io
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



The file META.yml (https://metacpan.org/source/MLEHMANN/AnyEvent-AIO-1.1/META.yml) contains JSON instead of YAML. Perhaps it should be renamed.
On 2014-12-18 02:36:40, AVKHOZOV wrote: Show quoted text
> The file META.yml (https://metacpan.org/source/MLEHMANN/AnyEvent-AIO- > 1.1/META.yml) contains JSON instead of YAML. Perhaps it should be > renamed.
It is surprising, but this is valid YAML. Just try the file with YAML::Shell: cat META.yml | ysh
Show quoted text
> It is surprising, but this is valid YAML. Just try the file with > YAML::Shell: > > cat META.yml | ysh
But CPAN::Meta::YAML (which uses by dh-make-perl) can not parse it: "CPAN::Meta::YAML failed to classify line '{' at /usr/local/share/perl/5.14.2/CPAN/Meta.pm line 154."
On 2014-12-19 03:11:41, AVKHOZOV wrote: Show quoted text
> > It is surprising, but this is valid YAML. Just try the file with > > YAML::Shell: > > > > cat META.yml | ysh
> > But CPAN::Meta::YAML (which uses by dh-make-perl) can not parse it: > "CPAN::Meta::YAML failed to classify line '{' at > /usr/local/share/perl/5.14.2/CPAN/Meta.pm line 154."
This is probably because CPAN::Meta::YAML only parses YAML-Tiny, not full YAML.
On 2014-12-19 12:37:49, SREZIC wrote: Show quoted text
> On 2014-12-19 03:11:41, AVKHOZOV wrote:
> > > It is surprising, but this is valid YAML. Just try the file with > > > YAML::Shell: > > > > > > cat META.yml | ysh
> > > > But CPAN::Meta::YAML (which uses by dh-make-perl) can not parse it: > > "CPAN::Meta::YAML failed to classify line '{' at > > /usr/local/share/perl/5.14.2/CPAN/Meta.pm line 154."
> > This is probably because CPAN::Meta::YAML only parses YAML-Tiny, not > full YAML.
This bug is valid -- CPAN::Meta::YAML cannot parse this META.yml. The author may wish to provide a META.json which modern tools will prefer instead of META.yml. Regardless, META.yml should be converted to YAML that CPAN::Meta::YAML can parse, or older toolchains will continue to have difficulty with this distribution. see also https://github.com/Perl-Toolchain-Gang/YAML-Tiny/issues/43