Open fenhl opened 1 year ago
@fenhl what does rustc +stable-x86_64-unknown-linux-musl --version
output? If your toolchain already has an error, cargo sweep
can't bypass it somehow, it needs to know the metadata hash of the version.
As a workaround, you can specify an individual toolchain: cargo sweep --toolchains stable-x86_64-unknown-linux-gnu
The rustc
command also errors. I didn't think to check it since cross-compiling for musl works.
According to the cargo help sweep
entry for --toolchains
, the suggested workaround will delete musl artifacts, which is not what I want.
I opened rust-lang/rustup#3254 for the rustc
error. Maybe cargo sweep
could improve its error handling to indicate that the error is in rustc
.
@fenhl cargo-sweep already says "failed to determine fingerprint for toolchain stable-x86_64-unknown-linux-musl" - how could that be improved?
The
rustc
command also errors. I didn't think to check it since cross-compiling for musl works.According to the
cargo help sweep
entry for--toolchains
, the suggested workaround will delete musl artifacts, which is not what I want.
Like jubilee said in https://github.com/rust-lang/rust/issues/108907#issuecomment-1463679981, the musl host toolchain is unrelated to the musl target standard library.
It wasn't clear to me from the error message that the error was happening in rustc. Maybe preface the part of the error message quoted from rustc with “rustc:” or “rustc output:” or something?
I'm getting this error when running
cargo sweep
on Ubuntu 23.04: