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
Duplicated values when appending to array #1145
Comments
The following works instead.
|
More interesting use case Input: - type: "skip"
children: ["c1"]
- type: "skip"
children: []
- type: "ok"
children: []
- type: "ok"
children: ["c1", "c2"] Query:
Output: - type: "skip"
children: ["c1"]
- type: "skip"
children: []
- type: "ok"
children:
- a
- a
- a
- a
- type: "ok"
children: ["c1", "c2", a, a, a, a] |
Thanks for raising with a clear example, definitely a bug, looking in to it. |
mikefarah
added a commit
that referenced
this issue
Mar 19, 2022
Fixed in 4.23.1 |
Thanks for the quick fix! Really appreciate it. I will give it a try on monday. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Input:
Query:
Result:
Expected result:
Version of yq: 4.22.1
Operating system: linux
Installed via: binary
jq behaviour
The text was updated successfully, but these errors were encountered: