diff --git a/src/backend/mod.rs b/src/backend/mod.rs index b8db25396d..6ce5ac5c2b 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -291,7 +291,7 @@ pub trait Backend: Debug + Send + Sync { } fn symlink_path(&self, tv: &ToolVersion) -> Option { match tv.install_path() { - path if path.is_symlink() => Some(path), + path if path.is_symlink() && !is_runtime_symlink(&path) => Some(path), _ => None, } } diff --git a/src/toolset/mod.rs b/src/toolset/mod.rs index 7397954e8c..a08d27c4d0 100644 --- a/src/toolset/mod.rs +++ b/src/toolset/mod.rs @@ -337,7 +337,7 @@ impl Toolset { } _ => v.clone(), }; - (p.clone(), tv.clone()) + (p.clone(), tv) }) }) .collect()