-
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
Replace any existing build/host
symlink
#109811
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Is there a reason we need an absolute path, not a relative one? At least on Linux I know that relative symlink seem to work fine... |
No strong reason, but I didn't want to spend time on it when this also fixes the problem just as well. |
Well, this PR would only fix it after actually running x.py, right? Whereas a relative path avoids breakage in that case entirely. In any case, I agree this seems fine in general and just wanted to raise the question, no need to do it in this PR. |
I guess it could cause issues if you have some tool running in the background that depends on the path? Not sure what would be looking in the sysroot like that and renaming the build directory and not running x.py. I'd rather not change things until someone complains, I worry that relative paths won't work on Windows. |
@bors r+ |
📌 Commit 045825e9ec073f0500d3c5cefbf62975fac7aaa5 has been approved by It is now in the queue for this repository. |
⌛ Testing commit 045825e9ec073f0500d3c5cefbf62975fac7aaa5 with merge 8c22b9ff4691e4b52649c235caa6dd9079332df3... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
looks spurious?
@bors retry |
⌛ Testing commit 045825e9ec073f0500d3c5cefbf62975fac7aaa5 with merge 0c86a8373b08aa5da8c24a93263e6d1f626e73fd... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
This has two advantages: 1. If `build.build` changes between runs, the symlink is no longer silently wrong. 2. If the entire build directory is moved, the symlink is no longer broken because it points to the wrong absolute path.
@bors r=Mark-Simulacrum rollup=iffy |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3a8a131): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
This has two advantages:
build.build
changes between runs, the symlink is no longer silently wrong.