utils: Always print status to stderr#1905
Conversation
There was a problem hiding this comment.
Code Review
This pull request correctly redirects spinner status messages to stderr, preventing them from corrupting JSON output on stdout. The changes in the Rust code are logical, and the updated test case is a significant improvement, effectively verifying the fix. I've included a couple of suggestions to enhance the robustness of both the application code and the test script.
|
We might hitting an grub2 regression injected in fedora-bootc:44 |
If we were waiting on a lock as part of `bootc status --format=json` this information message would end up in stderr, corrupting the output. Signed-off-by: Colin Walters <walters@verbum.org>
3fd0b4e to
4d5f8de
Compare
|
Rebased to pick up #1908 |
|
Hm the |
➡️ #1910 |
Yeah, it's technically not gating right now (but probably should be) |
If we were waiting on a lock as part of
bootc status --format=jsonthis information message would end up in stderr, corrupting the output.