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
I'm trying to merge 2 data files, but only want to merge keys from the second file that don't exist in the first. I expect that all comments on copied keys are merged as well.
Version of yq: 4.44.3
Operating system: macOS 12.7.6 (Monterey)
Installed via: homebrew
Input Yamls
empty.yaml:
empty: true
comments.yaml:
# foo head commentfoo: 1# foo line comment# bar head commentbar: # bar line comment# baz head commentbaz: # baz line comment# yolo head commentyolo: 2# yolo line comment
empty: true# foo head commentfoo: 1# foo line comment# bar head commentbar: # bar line comment# baz head commentbaz: # baz line comment# yolo head commentyolo: 2# yolo line comment
The text was updated successfully, but these errors were encountered:
I'm trying to merge 2 data files, but only want to merge keys from the second file that don't exist in the first. I expect that all comments on copied keys are merged as well.
Version of yq: 4.44.3
Operating system: macOS 12.7.6 (Monterey)
Installed via: homebrew
Input Yamls
empty.yaml:
comments.yaml:
Command
Actual behavior
Expected behavior
I expected all the comments to be merged as well. Since none of the fields in
comments.yaml
exist inempty.yaml
the result of*n
to be identical to*
:The text was updated successfully, but these errors were encountered: