-
Notifications
You must be signed in to change notification settings - Fork 353
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
Diagnostics about building a sysroot should include where that sysroot is. #3169
Comments
This was deliberate, since I didn't want to spam the user's terminal with a long and ugly path on each and every Why do you want to see that path? |
It there's an error we print:
The goal of that is that then they will see the full error message properly. We can't show the error in |
Because I want to know where Miri is stashing intermediate state that I might have to be aware of or clean up myself |
I see. I think I'd prefer to cover that usecase with documentation; it seems sufficiently rare that I don't think we want to print this on every single Miri invocation. Neither cargo nor rustup print all paths they touch in their default invocation. We can also make |
Oh, sure, that would totally resolve my needs here. |
cargo-miri: when verbose, print where the sysroot is being built Fixes rust-lang/miri#3169
Miri emits some helpful messages when it is doing the somewhat long running operation of preparing the initial sysroot.
But, when it does this in response to
cargo miri run
, it does not tell the user where that sysroot is located; it just says:When you run
cargo miri setup
, things are a little better, in that it will emit a note at the end saying where the sysroot was:But if someone Ctrl-C's the above, or if it hits an error without finishing successfully, then the user will again not know where the sysroot is that Miri prepared is located.
I think the fix here should probably be simple, e.g. in those initial diagnostics that say "Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... ", they could be elaborated to now say: "Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu, destination: /path/to/sysroot)..."
The text was updated successfully, but these errors were encountered: