We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug unexpected merge array if we have empty array
Version of yq: 4.44.6 Operating system: linux
Input Yaml data1.yml:
list: - 1
data2.yml:
list:
data3.yml:
list: - 3
Command The command you ran:
yq ea '. as $item ireduce ({}; . *+ $item )' *.yml > result.yml
Actual behavior
result.yml
Expected behavior
list: - 1 - 3
Additional context entry -1 has been removed
-1
but if we exclude data2.yml file (with yq ea '. as $item ireduce ({}; . *+ $item )' data1.yml data3.yml > result.yml), that works as expected.
data2.yml
yq ea '. as $item ireduce ({}; . *+ $item )' data1.yml data3.yml > result.yml
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
unexpected merge array if we have empty array
Version of yq: 4.44.6
Operating system: linux
Input Yaml
data1.yml:
data2.yml:
list:
data3.yml:
Command
The command you ran:
Actual behavior
result.yml
Expected behavior
Additional context
entry
-1
has been removedbut if we exclude
data2.yml
file (withyq ea '. as $item ireduce ({}; . *+ $item )' data1.yml data3.yml > result.yml
), that works as expected.The text was updated successfully, but these errors were encountered: