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
Comments in YAML are denoted by the "#" symbol and are ignored by the interpreter when the code is executed. No special requirements, that space should be placed between "#" symbol and comment text, however it can be validated with linter, but not required. But in this case, yq can't separate comment and "#" symbol if no spaces was provided.
Version of yq: v4.44.3
Operating system: linux
Installed via: go install
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
spec:
cpu: 1000m#nospace commentmemory: 500Mi # space comment
Describe the bug
Comments in YAML are denoted by the "#" symbol and are ignored by the interpreter when the code is executed. No special requirements, that space should be placed between "#" symbol and comment text, however it can be validated with linter, but not required. But in this case, yq can't separate comment and "#" symbol if no spaces was provided.
Version of yq: v4.44.3
Operating system: linux
Installed via: go install
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
Command
The command you ran:
Actual behavior
#nospace comment space comment
Expected behavior
The text was updated successfully, but these errors were encountered: