Open guymeron opened 1 month ago
I have a similar Issue, if there are multiple comment line a blank line is inserted.
global:
# BUG: Elasticsearch does not support network file systems (NFS). Usage of NFS may cause data corruption.
# NOTE: xxxxx by default, use 'xxxxx' instead
defaultStorageClass: "xxx" # TEMPLATE: default "storageClass: """
should still be:
global:
# BUG: Elasticsearch does not support network file systems (NFS). Usage of NFS may cause data corruption.
# NOTE: xxxxx by default, use 'xxxxx' instead
defaultStorageClass: "xxx" # TEMPLATE: default "storageClass: """
Edit: I tested a bit around and this part of the documentation does not work https://mikefarah.gitbook.io/yq/operators/comment-operators#get-head-comment
Describe the bug
evaluate
command moves comments to a different lineVersion of yq: 4.44.3 Operating system: mac Installed via: homebrew
Input Yaml data1.yml:
Command
Actual behavior
Expected behavior
Additional context It works OK when there is no empty line between the comments (line number 9).