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
The output of bootc status --json has the following line before the json starts:
note: The format of this API is not yet stable
I have some logic that captures the output, but it captures both STDERR and STDOUT which breaks json parsing.
We can fix our parsing, but the smallest fix would be to remove the "note" from the output. The json has a field with "apiVersion":"org.containers.bootc/v1alpha1" which IMO conveys the same thing as the note in a machine-readable way.
The text was updated successfully, but these errors were encountered:
cgwalters
added a commit
to cgwalters/bootc
that referenced
this issue
Feb 2, 2024
but it captures both STDERR and STDOUT which breaks json parsing.
As a general rule though...I think part of the design of Unix having a distinct stderr stream is precisely for use cases like this. I can't imagine it's hard to change the calling tool to capture stderr separately, is it?
Nevertheless I think your overall point is valid, so PR in #298
The output of
bootc status --json
has the following line before the json starts:I have some logic that captures the output, but it captures both STDERR and STDOUT which breaks json parsing.
We can fix our parsing, but the smallest fix would be to remove the "note" from the output. The json has a field with
"apiVersion":"org.containers.bootc/v1alpha1"
which IMO conveys the same thing as the note in a machine-readable way.The text was updated successfully, but these errors were encountered: