You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i run yq m one.yaml two.yaml, i get the following:
with yq 2.4.1:
foo:
bar:
baz:
other: valuehello: world
with yq 3.0.1:
foo:
hello: worldbar:
Adding any value to the bar key in the first file results in the correct output, as does removing the bar key from the first file. It seems to be related to bar existing as a key, but not having any dictionary values.
I would expect the functionality from 2.x to be preserved, as this has not been mentioned in the "upgrading from 2.x" page, and seems like a fairly large breaking change.
The text was updated successfully, but these errors were encountered:
Yeah I had to write my own merge function as the previous library was not going to work (and wouldn't preserve things like formatting and comments). It's not mentioned because it's a bug I didn't pick up :P I'll look into it
thanks! I would have a go at fixing it, but while I'd love to get up to scratch with Go, I don't think this is the month i'll have the time to do it...! (sorry - that's me that reported it on another account)
Given the following two files
If i run
yq m one.yaml two.yaml
, i get the following:with yq 2.4.1:
with yq 3.0.1:
Adding any value to the
bar
key in the first file results in the correct output, as does removing thebar
key from the first file. It seems to be related tobar
existing as a key, but not having any dictionary values.I would expect the functionality from 2.x to be preserved, as this has not been mentioned in the "upgrading from 2.x" page, and seems like a fairly large breaking change.
The text was updated successfully, but these errors were encountered: