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

[feature] calls to python's builtin print() function cause issues with --format=json command output #15671

Closed
1 task
jcar87 opened this issue Feb 14, 2024 · 0 comments · Fixed by #15704
Closed
1 task
Assignees
Milestone

Comments

@jcar87
Copy link
Contributor

jcar87 commented Feb 14, 2024

What is your suggestion?

recipes can have calls to print(), which will be printed to stdout, interleaved with the json output from the command, resulting in an invalid json

we may want to consider either forbidding print or redirecting the output to stderr to ensure the json output is always valid

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded added this to the 2.2 milestone Feb 14, 2024
@memsharded memsharded self-assigned this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants