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

Merge key order #484

Open
azat opened this issue Dec 26, 2024 · 0 comments
Open

Merge key order #484

azat opened this issue Dec 26, 2024 · 0 comments

Comments

@azat
Copy link

azat commented Dec 26, 2024

Looks like the order is wrong for merge key

input

# $ cat /tmp/test5-simplified.yaml
base_1: &base_1
  a: 10
  b: 10
base_2: &base_2
  b: 20
k1:
  !!merge <<: *base_1
  !!merge <<: *base_2

ryml

$ tools/ryml-parse-emit -j /tmp/test5-simplified.yaml  | jq .k1
reserving capacity=9
{
  "a": 10,
  "b": 10
}

yq

$ yq 'explode(.)' /tmp/test5-simplified.yaml
base_1:
  a: 10
  b: 10
base_2:
  b: 20
k1:
  a: 10
  b: 20
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