We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c72cb9e commit 5766750Copy full SHA for 5766750
src/utils/raw.rs
@@ -136,6 +136,8 @@ pub fn symlink_dir(src: &Path, dest: &Path) -> io::Result<()> {
136
fn symlink_dir_inner(src: &Path, dest: &Path) -> io::Result<()> {
137
// On Windows creating symlinks isn't allowed by default so if it fails
138
// we fallback to creating a directory junction.
139
+ // We prefer to use symlinks here because junction point paths, unlike symlinks,
140
+ // must always be absolute. This makes moving the rustup directory difficult.
141
std::os::windows::fs::symlink_dir(src, dest).or_else(|_| symlink_junction_inner(src, dest))
142
}
143
#[cfg(not(windows))]
0 commit comments