-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rust 1.81.0 fails to build without network access #130099
Comments
We vendor dependencies in distribution tarballs, so when you run |
Dropped the regression label as this isn't a regression from the previous stable. |
I don't see a single |
And that command is generated from here.
Do you mean |
To be clear
|
Is it perhaps 1089de4 |
It shouldn't be that one.
Vendoring should be trigger for both builds if I am not missing anything. Can you tell me how did you get "1.80.1" source code? Did you download it from Github as a zip file ? If so, vendoring can be skipped as the check here will return false in that scenario.
|
I don't know what dry run meant in this context but at least prior to this commit codepath existed that would skip
Downloaded since forever from https://static.rust-lang.org/dist/rustc-1.81.0-src.tar.xz |
Are you sure that "cargo vendor" is not being executed? Maybe it's being executed but performing no-op 🤔 |
Attaching full log file for reference: |
Probably because of this PR #125465? Though I removed the code vendoring training crates, bootstrap still accesses the network. |
At which part? |
Looks like
|
Just bisected and found 3ef77cc is the bad commit. Changing back to using |
@weihanglo Could you please post the bootstrap invocation that you used to bisect this? |
This comment was marked as outdated.
This comment was marked as outdated.
Finally got time look into the actual code. Seems like The 3ef77cc did nothing wrong. It's a correct fix revealing the silent failure. The follow-up question would be: should |
There's this PR #130110 which makes the dist vendoring configurable. |
While my original proposal was using the I cannot think of a reason people want to create a self-contained source tarball from a self-contained source tarball. That said, we can always look into that feature when it is requested. Given above I think #130110 resolves this issue. |
Thanks for investigating this! Good to know that the command refactoring helped find a silent error. |
Fixed in 1.83.0. |
Distribution packages are often built from self contained sources in isolated environment without network access. Contrary to previous releases
rust 1.81.0
fails to build without network access although it's not clear to me why exactly../x.py dist
fails with;The text was updated successfully, but these errors were encountered: