-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix rust-src component. #74578
Fix rust-src component. #74578
Conversation
As a followup PR I'd like to look at somehow adding a check so that this particular issue (symlinks) doesn't happen again in the future. I'm not sure where the best place would be to check for that. Maybe in As for the bigger issue where "rust-src" isn't usable, do you think it is feasible to add a test for that? I'd be reluctant because I can't think of a really stable way to check that. I'm not sure I'd want to gate rust-lang/rust on cargo's build-std feature right now. Maybe there is some other check that would be reasonable? If not, we can probably continue without; it doesn't break too often. |
So generally speaking symlinks can't be used on windows without toggling on 'developer mode' - it would be nice to actually remove the symlinks from the tree entirely IMO, though I recognise that that is a larger change. |
@bors r+ p=1 Approving, though I agree this seems like a suboptimal fix in the long run. I think we should consider automatically "delinking" any symlinks we find or something like that. |
📌 Commit 79673d3 has been approved by |
⌛ Testing commit 79673d3 with merge 0b66800a2cfb407c917a83451238298ac22b5245... |
💔 Test failed - checks-azure |
@bors retry
macOS x86_64-apple on azure |
⌛ Testing commit 79673d3 with merge be0c64997c1881943ccfd2220eeef831d12be12e... |
💥 Test timed out |
@bors retry |
Any update on this PR ? I filed rust-lang/rustup#2434 which in turn is blocked on this. All updates are failing at this point. |
☀️ Test successful - checks-actions, checks-azure |
|
If Miri tests don't take too long maybe they could be moved to new builder that starts right when Linux dist finishes. It would install Rust (with proper components) from AWS and then run Miri tests. Don't know if it's possible/feasible though. |
The rust-src component could not be installed by rustup because it included some symbolic links. #74520 added the backtrace directory which included some symlinks. Since the rust-src component doesn't need most of the files in the
backtrace
submodule, this changes it to only include the minimum necessary.Tested with cargo's build-std that it can build from the resulting tarball.
Fixes #74577