Skip to content
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

Regression in outputting single-quoted strings #2287

Open
thatch opened this issue Feb 13, 2025 · 0 comments
Open

Regression in outputting single-quoted strings #2287

thatch opened this issue Feb 13, 2025 · 0 comments
Labels

Comments

@thatch
Copy link

thatch commented Feb 13, 2025

Describe the bug

Somewhere between v4.35.2 and v4.45.1, yq outputting yaml started using the wrong number of single quotes (perhaps it thinks these can be simple scalars):

This input is valid yaml, and should be sent through unmodified:

$ echo "''" | yq .
''
$ echo "''''" | yq .
''''

What it does currently:

$ echo "''" | yq .

$ echo "''''" | yq .
'

Version of yq: v4.45.1
Operating system: Mac and Archlinux
Installed via: homebrew and https://archlinux.org/packages/extra/x86_64/go-yq/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant