-
-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comment is visible when some feature like pick or length #1231
Comments
Hi - I agree with the length operator, the comments should not come through will fix in the next release. Till then you can For edit: formatting |
Perfect |
Thanks, this crept up on me today and I thought I was going crazy. Seems to affect has() as well. I'm using this to inspect a cloud-config file, so I started to get #cloud-config in my results. Got really confusing, since it should really just be a sanitized true/false no matter what. |
Fixed in v4.25.3 |
Comment is visible when some feature like pick or length
Version of yq: 4.25.X
Operating system: linux/windows
Input Yaml
data1.yml:
data2.yml:
Command
The command you ran:
Actual behavior
Expected behavior
1
Additional context
Same problem with the pick feature
yq 'pick(["groups"]) | explode(.) as $item ireduce ({}; . *+ $item)' data1.yml data2.yml --no-doc --prettyPrint
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: