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
Description
Merging a false boolean into a true boolean does not work as expected.
version of yq: 2.4.1
operating system: Docker (mikefarah/yq:2)
Input Yaml
data1.yml:
key:
value: false
data2.yml:
key:
value: true
Command
The command you ran:
yq merge data1.yml data2.yml
Actual behavior
key1:
value: true
Expected behavior
key:
value: false
Additional context
It works fine with yq 3+. I'm using 2 until #455 is addressed.
My workaround is to cast boolean as a string and remove quotes after the merging is done.
The text was updated successfully, but these errors were encountered:
Thank you for developing
yq
:)Description
Merging a
false
boolean into atrue
boolean does not work as expected.version of yq:
2.4.1
operating system: Docker (
mikefarah/yq:2
)Input Yaml
data1.yml:
data2.yml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
It works fine with yq 3+. I'm using 2 until #455 is addressed.
My workaround is to cast boolean as a string and remove quotes after the merging is done.
The text was updated successfully, but these errors were encountered: