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
yq version 3.1.0
When I merge two files with append option i got two different results based on order of files.
Input files:
first.yml
volumes: app: {} app-cache: driver_opts: type: none
second.yml
volumes: backups: driver_opts: type: none
Command: yq m -a first.yml second.yml > output.yml (returns correct output)
yq m -a first.yml second.yml > output.yml
volumes: app: {} app-cache: driver_opts: type: none backups: driver_opts: type: none
Command: yq m -a second.yml first.yml > output.yml
yq m -a second.yml first.yml > output.yml
volumes: backups: driver_opts: type: none app-cache: driver_opts: type: none
Expected result: the output should contain all keys regardless of the order of the files
The text was updated successfully, but these errors were encountered:
Looks like app gets skipped because its {}. Interestingly it works if its null or empty...
app
{}
null
Sorry, something went wrong.
Related to #355
Fixed in https://github.com/mikefarah/yq/releases/tag/3.1.2
No branches or pull requests
yq version 3.1.0
When I merge two files with append option i got two different results based on order of files.
Input files:
first.yml
second.yml
Command:
yq m -a first.yml second.yml > output.yml
(returns correct output)Command:
yq m -a second.yml first.yml > output.yml
Expected result: the output should contain all keys regardless of the order of the files
The text was updated successfully, but these errors were encountered: