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
We are seeing an issue where yq in its versions v4.32.x changed its behavior with the -P flag, and now is not able to properly format a YAML file with the pretty formatting.
Version of yq: 4.32.1 and forward
Operating system: Tested on mac and linux
Installed via: binary release
Input Yaml
test.json:
{
"foo": "bar"
}
Command
yq -P test.json
Actual behavior
This behavior can be observed in yq v4.32.1 and later versions:
{"foo": "bar"}
Expected behavior
This behavior can be observed in yq v4.31.2 and previous versions:
foo: bar
Additional context
We use yq -P to convert a JSON-formatted file to YAML syntax.
The text was updated successfully, but these errors were encountered:
Describe the bug
We are seeing an issue where yq in its versions v4.32.x changed its behavior with the
-P
flag, and now is not able to properly format a YAML file with the pretty formatting.Version of yq: 4.32.1 and forward
Operating system: Tested on mac and linux
Installed via: binary release
Input Yaml
test.json:
Command
Actual behavior
This behavior can be observed in yq v4.32.1 and later versions:
Expected behavior
This behavior can be observed in yq v4.31.2 and previous versions:
Additional context
We use
yq -P
to convert a JSON-formatted file to YAML syntax.The text was updated successfully, but these errors were encountered: