Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 39461
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: taro.nishino [...] gmail.com
Cc:
AdminCc:

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



Subject: The first line of a META.yml file should be "--- #YAML:1.0".
Dear Greg, At least as of 2.10.1, The first line of a META.yml file begins with "--- #YAML:1.1". Unfortunately that causes the following warning. YAML Warning: Parsing a 1.1 document with a 1.0 parser Code: YAML_PARSE_WARN_BAD_MINOR_VERSION Line: 2 Document: 1 at C:\Perl\site\lib/YAML/Base.pm line 88 YAML::Base::warn('YAML::Loader=HASH(0x81cc508)', 'YAML_PARSE_WARN_BAD_MI NOR_VERSION', 1.1) called at C:\Perl\site\lib/YAML/Loader.pm line 95 YAML::Loader::_parse('YAML::Loader=HASH(0x81cc508)') called at C:\Perl\s ite\lib/YAML/Loader.pm line 22 YAML::Loader::load('YAML::Loader=HASH(0x81cc508)', '--- #YAML:1.1\x{a}na me : DBD-Pg\x{a}version ...') called at C:\Perl\site\li b/YAML.pm line 33 YAML::Load('--- #YAML:1.1\x{a}name : DBD-Pg\x{a}v ersion ...') called at C:\Perl\site\lib/YAML.pm line 72 YAML::LoadFile('C:\Perl\cpan\build\DBD-Pg-2.10.6-cN5Ct3\META.yml') calle d at C:/Perl/lib/CPAN.pm line 443 eval {...} called at C:/Perl/lib/CPAN.pm line 443 CPAN::_yaml_loadfile('CPAN', 'C:\Perl\cpan\build\DBD-Pg-2.10.6-cN5Ct3\ME TA.yml') called at C:/Perl/lib/CPAN.pm line 6367 eval {...} called at C:/Perl/lib/CPAN.pm line 6367 CPAN::Distribution::parse_meta_yml('CPAN::Distribution=HASH(0x723bb98)') called at C:/Perl/lib/CPAN.pm line 8160 CPAN::Distribution::unsat_prereq('CPAN::Distribution=HASH(0x723bb98)', ' configure_requires_later') called at C:/Perl/lib/CPAN.pm line 6385 CPAN::Distribution::satisfy_configure_requires('CPAN::Distribution=HASH( 0x723bb98)') called at C:/Perl/lib/CPAN.pm line 6425 CPAN::Distribution::run_MM_or_MB('CPAN::Distribution=HASH(0x723bb98)', ' undef') called at C:/Perl/lib/CPAN.pm line 6160 CPAN::Distribution::get('CPAN::Distribution=HASH(0x723bb98)') called at C:/Perl/lib/CPAN.pm line 7376 CPAN::Distribution::make('CPAN::Distribution=HASH(0x723bb98)') called at C:/Perl/lib/CPAN.pm line 8504 CPAN::Distribution::test('CPAN::Distribution=HASH(0x723bb98)') called at C:/Perl/lib/CPAN.pm line 8846 CPAN::Distribution::install('CPAN::Distribution=HASH(0x723bb98)') called at C:/Perl/lib/CPAN.pm line 3364 CPAN::Shell::rematein('CPAN::Shell', 'install', 'TURNSTEP/DBD-Pg-2.10.6. tar.gz') called at C:/Perl/lib/CPAN.pm line 3535 CPAN::Shell::__ANON__('CPAN::Shell', 'TURNSTEP/DBD-Pg-2.10.6.tar.gz') ca lled at C:/Perl/lib/CPAN.pm line 274 eval {...} called at C:/Perl/lib/CPAN.pm line 274 CPAN::shell() called at C:\Perl\bin/cpan line 187 As such, I replaced "--- #YAML:1.1" with "--- #YAML:1.0". The warning above expectantly didn't output. Best regards, Taro Nishino
Show quoted text
> At least as of 2.10.1, The first line of a META.yml file begins with > "--- #YAML:1.1". > Unfortunately that causes the following warning. > > YAML Warning: Parsing a 1.1 document with a 1.0 parser > Code: YAML_PARSE_WARN_BAD_MINOR_VERSION
Not sure how to handle this: 1.1 is a completely valid version, but as shown above, you are using a parser that cannot handle it. I'm not sure if there is anything we can detect it early enough to prevent the warning.
Subject: Re: [rt.cpan.org #39461] The first line of a META.yml file should be "--- #YAML:1.0".
Date: Mon, 22 Sep 2008 14:37:37 +0900
To: bug-DBD-Pg [...] rt.cpan.org
From: Taro Nishino <taro.nishino [...] gmail.com>
Hi Greg, On Sun, 21 Sep 2008 20:56:56 -0400 "Greg Sabino Mullane via RT" <bug-DBD-Pg@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=39461 > >
> > At least as of 2.10.1, The first line of a META.yml file begins with > > "--- #YAML:1.1". > > Unfortunately that causes the following warning. > > > > YAML Warning: Parsing a 1.1 document with a 1.0 parser > > Code: YAML_PARSE_WARN_BAD_MINOR_VERSION
> > Not sure how to handle this: 1.1 is a completely valid version, but as > shown above, you are using a parser that cannot handle it. I'm not sure > if there is anything we can detect it early enough to prevent the warning.
You use Test::YAML::Meta in 99_yaml.t. Test::YAML::Meta uses Test::YAML::Valid, which requires YAML::Syck or YAML. But, YAML::Syck and YAML both can deal with just only YAML1.0! Best regards, Taro Nishino
Show quoted text
> You use Test::YAML::Meta in 99_yaml.t. > Test::YAML::Meta uses Test::YAML::Valid, which requires YAML::Syck or
YAML. Show quoted text
> But, YAML::Syck and YAML both can deal with just only YAML1.0!
Yes, that's a shame. The tests seem to work on my system, but I'll see if there is anything 1.1 specific in the META.yml and change the top number. Thanks again.