Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML_LOAD_WARN_DUPLICATE_KEY #596

Open
eserte opened this issue Dec 6, 2019 · 0 comments
Open

YAML_LOAD_WARN_DUPLICATE_KEY #596

eserte opened this issue Dec 6, 2019 · 0 comments

Comments

@eserte
Copy link

eserte commented Dec 6, 2019

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) ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant