-
Notifications
You must be signed in to change notification settings - Fork 78
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
The result of merging depends on order data in a list #357
Comments
With no explicit operator, spruce does an Briefly, In your second example, spruce actually attempts to merge - c: 2
z:
- x: 3 which, frankly, I'm not sure what should do. |
on that topic - the default strategy for merging arrays is very subjective. spruce provides a I would've preferred to have
as a flag that I could pass to specify default behavior explicitly (if no array-merge operator is present). For context -> I use spruce to transform Helm configs. |
When I merge follow two yaml files I get the expected result:
The result:
But when I change order in the first file I get the unexpected result:
The result:
The text was updated successfully, but these errors were encountered: