From dad1b92c5d2cf86346f3df9d5a31566e6f2b4089 Mon Sep 17 00:00:00 2001 From: Mike Innes Date: Tue, 7 Nov 2023 11:57:00 +0000 Subject: [PATCH] follow symlinks --- src/bin/julialauncher.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/julialauncher.rs b/src/bin/julialauncher.rs index 388da0f9..4e1e1cf8 100644 --- a/src/bin/julialauncher.rs +++ b/src/bin/julialauncher.rs @@ -17,7 +17,9 @@ pub struct UserError { fn get_juliaup_path() -> Result { let my_own_path = std::env::current_exe() - .with_context(|| "std::env::current_exe() did not find its own path.")?; + .with_context(|| "std::env::current_exe() did not find its own path.")? + .canonicalize() + .with_context(|| "Failed to canonicalize the path to the Julia launcher.")?; let juliaup_path = my_own_path .parent()