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
Version 4.40.4 of YQ does not parse "----" input as expected #1890
Comments
The To force it to parse as a string, use |
So what got changed between 4.35.2 and 4.40.4? It was perfectly working fine in the previous version, was there any change from your side? |
@mikefarah did you got a chance to look into this? |
That's a good point re version change, not sure what would have caused that. Haven't had a chance to look at it sorry - but I'll get to it. |
Found the issue :) will be fixed in the next release |
Fixed in 4.40.5 |
Describe the bug
Version 4.40.4 of YQ does not parse "----" input as expected. It was working perfectly fine with previous version of YQ.
Version of yq: 4.40.4
Operating system: linux
Installed via: binary release
Input Yaml
config1.yml:
CLI command that does not work as expected:
CONFIG_KEY="your_key" CONFIG_VALUE="----BEGIN" yq -i eval '.[$CONFIG_KEY] = env(CONFIG_VALUE)' config1.yml" config1.yml
Output:
Version of yq: 4.35.2
Operating system: linux
Installed via: binary release
config1.yml:
CLI command that works as expected:
CONFIG_KEY="your_key" CONFIG_VALUE="----BEGIN" yq -i eval '.[$CONFIG_KEY] = env(CONFIG_VALUE)' config1.yml
Output:
Additional context
The CLI command in both cases remains the same.
The text was updated successfully, but these errors were encountered: