-
Notifications
You must be signed in to change notification settings - Fork 13.4k
bootstrap uses downloaded rustc despite lockfile changes #142338
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
Comments
|
I think it is a pretty severe bug for "if-unchanged" to ever be wrong, no matter the profile. Correctness is more important than performance. If I have to debug "if-unchanged" issues any time something odd happens, it doesn't actually save time. It is pure luck that it only took me ~10min to realize that it was using the wrong version of the crate that I just updated, this could have easily been an hour-long debugging session! Please do not ever add anything to the allowlist that could possibly influence the compiler build. This is crucial. If we don't have reliable foundations for building rustc, how are we supposed to build a reliable compiler? Also, the library anyway has its own lockfile these days. |
I thought that would be pretty rare case to update dependencies of compiler without touching on compiler tree but yeah, that was a mistake; we shouldn't add that to the allow list.
My bad, it was |
It is indeed rare for me, not sure about others. But we don't accept rare soundness bugs or rare miscompilations, so equally we should not accept rare build system malfunctions.
I'm not sure when I will have time to post a revert, debugging this has used up a lot of my Rust time for today. I'd appreciate if you could do this.
|
Posted a revert here: #142344 |
I have run
cargo update -p rustc_apfloat
to link a newer apfloat into Miri.download-rustc
is set to "if-unchanged". However, it seems bootstrap doesn't consider this to "change" rustc:./x test miri
still uses the downloaded rustc, leading to test failures since I didn't get the newer apfloat I was hoping for.Does bootstrap somehow have the lockfile on the list of files it can ignore for download-rustc? That would not make sense, would it?
Cc @onur-ozkan
The text was updated successfully, but these errors were encountered: