Hi, Interestingly this file is actually fake (sort of). The real file is the DIST.json file, which read in and then written out using YAML::XS. If if is missing a newline, that is just how YAML::XS writes it out to the browser, as it doesn't write a physical file.
Cheers, Barbie. On Fri, Jul 19, 2013 at 8:33 PM, David Golden <x...@xdg.me> wrote: > FWIW, appears to work fine with YAML::Syck and YAML::XS. Fails with > YAML::Tiny. > > On Thu, Jul 18, 2013 at 4:28 AM, Olivier Mengué > <olivier.men...@gmail.com> wrote: > > http://www.cpantesters.org/show/Alien-Base.yaml (and probably others) > > seems to be an invalid YAML document > > The real broken document is at > > http://www.cpantesters.org/distro/A/Alien-Base.yaml > > > > That URL is used by CPAN::Reporter for the "reports" command: "reports > > JBERGER/Alien-Base-0.003.tar.gz" > > > > How to reproduce: > > > > $ perl -MLWP::Simple -MYAML -E 'YAML::Load(get shift)' > > http://www.cpantesters.org/show/Alien-Base.yaml > > YAML Error: Stream does not end with newline character > > Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE > > Line: 0 > > Document: 0 > > at /home/omengue/.perl/lib/perl5/YAML/Loader.pm line 38. > > > > Fixing the document : > > $ perl -MLWP::Simple -MYAML -E 'YAML::Load(get(shift)."\n")' > > http://www.cpantesters.org/show/Alien-Base.yaml > > > > > > Olivier. > > > > -- > David Golden <x...@xdg.me> > Take back your inbox! → http://www.bunchmail.com/ > Twitter/IRC: @xdg >