-
Notifications
You must be signed in to change notification settings - Fork 77
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
[old/abandoned/do not merge] Improve interactive dist plan
output
#1560
Conversation
b21999c
to
a07111b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a07111b
to
3f74701
Compare
3f74701
to
d1379f4
Compare
@ashleygwilliams here's my understanding of everything related to this PR.
This was encountered in the real-world here: https://github.com/mitre/hipcheck/actions/runs/11808204242/job/32896362439 It resulted in this error:
Making But if you do that for the JSON output, it falls on its face: it tries to print multiple JSON documents in a row, which aren't valid. The obvious solution is to put them in a JSON array. That looks something like:
But, everything in dist appears to be built under the assumption that the JSON output for I determined that if you change cargo-dist/cargo-dist/tests/gallery/dist.rs Lines 500 to 505 in b487ee9
The one that is broken by changing this is parsing the output of It is also unclear to me if the code in the generated workflows would work, even if we get the entire test suite passing. Fixing the tests may just mean we're no longer testing real-world usage. I think the manifest is used by receipts, so it might break upgrades. It also doesn't make sense for Basically: This functionality is at odds with what may be the most common assumption in this codebase. |
revised plan for this:
|
This comment was marked as outdated.
This comment was marked as outdated.
dist plan
output
dist plan
outputdist plan
output
Closing in favor of #1595. |
Here's what it looks like as of the last time I edited this comment (~3:30pm ET on November 14th):
If everything in a workspace has the same version, everything works as it did before this PR:
TODO:
--output-format=json
, behave asmain
does now.