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