When trying to sequentially append two objects to an array, say array + o1 + o2, instead of appending o1 then appending o2, yq combined the objects o1 and o2, then appended the new object to the array.
Version of yq: 4.44.3
Operating system: mac
Installed via: homebrew
Input Yaml
N/A
Command
The command you ran:
yq -n '[] + {"a":1} + {"b":2}'
Actual behavior
- a: 1
b: 2
Expected behavior
- a: 1
- b: 2
Additional context
Add any other context about the problem here.
Describe the bug
When trying to sequentially append two objects to an array, say
array + o1 + o2
, instead of appending o1 then appending o2, yq combined the objects o1 and o2, then appended the new object to the array.Version of yq: 4.44.3 Operating system: mac Installed via: homebrew
Input Yaml N/A
Command
The command you ran:
Actual behavior
Expected behavior
Additional context Add any other context about the problem here.