-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider the following YAML: trait1: &t1 foo: 1 trait2: &t2 foo: 2 merged: <<: *t1 <<: *t2 yq reports: $ yq .merged.foo < /tmp/yaml 2 while the order that yaml-cpp returns is different, since it will firstly handle 1, and will not replace it with 2: $ util/parse < /tmp/yaml trait1: ? &1 foo : &2 1 trait2: foo: 2 merged: *1 : *2 (Don't mix up "*2" with "2", it is trait1)
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters