-
Notifications
You must be signed in to change notification settings - Fork 13.4k
bootstrap: Build using download-rustc
can modify Cargo.lock
for non compiler/
deps, causing rustc to not be downloaded on next build
#141986
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 cannot reproduce this on 792fc2b. |
I think they some had changes on either bootstrap or compiler tree. |
Ok, I've mangaged to figure out why this was happening. I had no changes in bootstrap or compiler, but I had changes in rustdoc's ReproWe start on 61413ae (master at the time of writing), with the same config, and no changes. download-rustc works as expected.
Then we edit
However, doing this build has caused
So now, when we run the build again, it builds rustc locally, instead of downloading it:
So what's the bug.I think not using download-rustc if |
profile = "tools"
no longer downloads rustc for rustdocdownload-rustc
can cause Cargo.lock
to be modified for non compiler/
deps, causing rustc to not be downloaded on subsequent builds.
download-rustc
can cause Cargo.lock
to be modified for non compiler/
deps, causing rustc to not be downloaded on subsequent builds.download-rustc
can modify Cargo.lock
for non compiler/
deps, causing rustc to not be downloaded on next build
@rustbot label A-download-rustc |
Uh oh!
There was an error while loading. Please reload this page.
EDIT: See #141986 (comment) for the actual problem/reproduction steps
Summary
When using
profile = "tools"
, building rustdoc requires building rustc, instead of usingdownload-rustc
toCommand used
Expected behaviour
I don't build 300 crates of rustc
Actual behaviour
It builds rustc from source, instead of downloading CI artifacts.
Bootstrap configuration (bootstrap.toml)
Operating system
Ubuntu 24.04.1 LTS
HEAD
a124fb3
Additional context
Build Log
The lines
Look sus, as it's says it's extracting to
rustfmt
twice, but I think that that's unrelated.The text was updated successfully, but these errors were encountered: