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

YamlDotNet merges anchor list in wrong order. #594

Closed
Indomitable opened this issue Mar 9, 2021 · 1 comment · Fixed by #596
Closed

YamlDotNet merges anchor list in wrong order. #594

Indomitable opened this issue Mar 9, 2021 · 1 comment · Fixed by #596

Comments

@Indomitable
Copy link
Contributor

Indomitable commented Mar 9, 2021

Hello,

According the documentation: https://yaml.org/type/merge.html

Keys in mapping nodes earlier in the sequence override keys specified in later mapping nodes

Considering this example:

.first: &first
  x: 1
.second: &second
  x: 2

item:
  <<: [*second, *first]

element item.x should have value 2, but YamlDotNet produces value 1
Sample project can be found here: https://github.com/Indomitable/yaml-merge-bug
image

BR

@Indomitable Indomitable changed the title YamlDotnet merges anchor list in wrong order. YamlDotNet merges anchor list in wrong order. Mar 9, 2021
@github-actions
Copy link

github-actions bot commented Apr 1, 2021

A fix for this issue has been released in version 11.0.1.

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

Successfully merging a pull request may close this issue.

1 participant