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

yq -P changed behavior in v4.32.x #1611

Closed
marcosbc opened this issue Mar 22, 2023 · 1 comment
Closed

yq -P changed behavior in v4.32.x #1611

marcosbc opened this issue Mar 22, 2023 · 1 comment
Labels

Comments

@marcosbc
Copy link

marcosbc commented Mar 22, 2023

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:

{
  "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.

@marcosbc
Copy link
Author

Just noticed that this looks like a duplicate bug report to #1608, so closing this. Sorry for the noise!

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