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
Describe the bug head_comment operator does fetch the head comment for one document, but not for another document which is basically configured in the same manner.
Version of yq: 4.45.1
Operating system: mac
Installed via:
Additional context
I first experienced this on a Linux runner using the same version of YQ mentioned above. I found a workaround using yq '... | headComment | select(. != "")' "data2.yaml" which provides the correct result.
The text was updated successfully, but these errors were encountered:
Describe the bug
head_comment
operator does fetch the head comment for one document, but not for another document which is basically configured in the same manner.Version of yq: 4.45.1
Operating system: mac
Installed via:
Input Yamls
Document 1:
data1.yaml:
Document 2:
data2.yaml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
I first experienced this on a Linux runner using the same version of YQ mentioned above. I found a workaround using
yq '... | headComment | select(. != "")' "data2.yaml"
which provides the correct result.The text was updated successfully, but these errors were encountered: