Skip to content
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

juliainstaller up fails when juliaup fails to execute #879

Open
t-bltg opened this issue Mar 27, 2024 · 0 comments · May be fixed by #880
Open

juliainstaller up fails when juliaup fails to execute #879

t-bltg opened this issue Mar 27, 2024 · 0 comments · May be fixed by #880

Comments

@t-bltg
Copy link
Contributor

t-bltg commented Mar 27, 2024

Consider the following wrapper when $HOME/bin is added to the PATH:

$ cat $HOME/bin/juliaup
#!/usr/bin/env bash
exec __some_invalid_path__/.juliaup/bin/juliaup "$@"
$ chmod +x $HOME/bin/juliaup
$ juliaup
$HOME/bin/juliaup: line 2: __some_invalid_path__/.juliaup/bin/juliaup: No such file or directory
$ echo $?
127

Then, when invoking the following command to install juliaup

$ curl -fsSL https://install.julialang.org | sh -s -- -y

, the function is_juliaup_installed returns success (which is a false positive, since the wrapper tries to execute an invalid command, error 127) leading to the following message):

It seems that Juliaup is already installed on this system. Please remove the previous installation of Juliaup before you try to install a new version.
@t-bltg t-bltg linked a pull request Mar 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant