Statocles icon indicating copy to clipboard operation
Statocles copied to clipboard

YAML_LOAD_WARN_DUPLICATE_KEY

Open eserte opened this issue 6 years ago • 0 comments

t/command/create.t fails on some systems with a YAML error:

        #   Failed test 'nothing on stderr'
        #   at t/command/create.t line 36.
        # STDERR: YAML Warning: Duplicate map key '$class' found. Ignoring.
        #    Code: YAML_LOAD_WARN_DUPLICATE_KEY
        #    Line: 121
        #    Document: 1
        #  at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Mo.pm line 24.
        # 	YAML::Mo::__ANON__('YAML::Loader=HASH(0x47349d8)', 'YAML_LOAD_WARN_DUPLICATE_KEY', '$class') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 373
        # 	YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x47349d8)', '') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 184
        # 	YAML::Loader::_parse_node('YAML::Loader=HASH(0x47349d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 370
        # 	YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x47349d8)', '') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 184
        # 	YAML::Loader::_parse_node('YAML::Loader=HASH(0x47349d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 110
        # 	YAML::Loader::_parse('YAML::Loader=HASH(0x47349d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 25
        # 	YAML::Loader::load('YAML::Loader=HASH(0x47349d8)', '\x{a}### Generated by Statocles version 0.096\x{a}\x{a}# This is the site...') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML.pm line 45
        # 	YAML::Load('\x{a}### Generated by Statocles version 0.096\x{a}\x{a}# This is the site...') called at /home/cpansand/.cpan/build/2019120516/Statocles-0.096-fPlLNH/blib/lib/Statocles/Command/create.pm line 165
        # 	Statocles::Command::create::create_site('Statocles::Command::create=HASH(0x463b0b8)', 'ARRAY(0x4696f38)') called at /home/cpansand/.cpan/build/2019120516/Statocles-0.096-fPlLNH/blib/lib/Statocles/Command/create.pm line 12
        # 	Statocles::Command::create::run('Statocles::Command::create=HASH(0x463b0b8)', 'example.com') called at /home/cpansand/.cpan/build/2019120516/Statocles-0.096-fPlLNH/blib/lib/Statocles.pm line 64
        # 	Statocles::run('Statocles', 'create', 'example.com') called at t/command/create.t line 33
        # 	main::__ANON__() called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Capture/Tiny.pm line 382
        # 	eval {...} called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Capture/Tiny.pm line 382
        # 	Capture::Tiny::_capture_tee(1, 1, 0, 0, 'CODE(0x1214580)') called at t/command/create.t line 33
        # 	main::__ANON__() called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
        # 	eval {...} called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
        # 	Test::Builder::subtest('Test::Builder=HASH(0x3e697f8)', 'project site with file deploy', 'CODE(0x461db60)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/More.pm line 809
        # 	Test::More::subtest('project site with file deploy', 'CODE(0x461db60)') called at t/command/create.t line 68
        # 	main::__ANON__() called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
        # 	eval {...} called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
        # 	Test::Builder::subtest('Test::Builder=HASH(0x3e697f8)', 'create a site', 'CODE(0x45e5528)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/More.pm line 809
        # 	Test::More::subtest('create a site', 'CODE(0x45e5528)') called at t/command/create.t line 248
YAML Warning: Duplicate map key '$class' found. Ignoring.
   Code: YAML_LOAD_WARN_DUPLICATE_KEY
   Line: 121
   Document: 1
 at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Mo.pm line 24.
	YAML::Mo::__ANON__('YAML::Loader=HASH(0x48717d8)', 'YAML_LOAD_WARN_DUPLICATE_KEY', '$class') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 373
	YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x48717d8)', '') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 184
	YAML::Loader::_parse_node('YAML::Loader=HASH(0x48717d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 370
	YAML::Loader::_parse_mapping('YAML::Loader=HASH(0x48717d8)', '') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 184
	YAML::Loader::_parse_node('YAML::Loader=HASH(0x48717d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 110
	YAML::Loader::_parse('YAML::Loader=HASH(0x48717d8)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML/Loader.pm line 25
	YAML::Loader::load('YAML::Loader=HASH(0x48717d8)', '\x{a}### Generated by Statocles version 0.096\x{a}\x{a}# This is the site...') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/YAML.pm line 45
	YAML::Load('\x{a}### Generated by Statocles version 0.096\x{a}\x{a}# This is the site...') called at t/command/create.t line 48
	main::__ANON__() called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
	eval {...} called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
	Test::Builder::subtest('Test::Builder=HASH(0x3e697f8)', 'project site with file deploy', 'CODE(0x461db60)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/More.pm line 809
	Test::More::subtest('project site with file deploy', 'CODE(0x461db60)') called at t/command/create.t line 68
	main::__ANON__() called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
	eval {...} called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/Builder.pm line 334
	Test::Builder::subtest('Test::Builder=HASH(0x3e697f8)', 'create a site', 'CODE(0x45e5528)') called at /opt/perl-5.18.4/lib/site_perl/5.18.4/Test/More.pm line 809
	Test::More::subtest('create a site', 'CODE(0x45e5528)') called at t/command/create.t line 248
        # Looks like you failed 1 test of 12.

    #   Failed test 'project site with file deploy'
    #   at t/command/create.t line 68.
... (etc) ...

eserte avatar Dec 06 '19 06:12 eserte