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

Conda installation leaves tmp/installer.sh behind #253

Open
oschulz opened this issue Jan 22, 2024 · 1 comment
Open

Conda installation leaves tmp/installer.sh behind #253

oschulz opened this issue Jan 22, 2024 · 1 comment

Comments

@oschulz
Copy link

oschulz commented Jan 22, 2024

Due to

if Sys.isunix()
            installer = joinpath(INSTALLER_DIR, "installer.sh")

we currently leave a file "tmp/installer.sh". This causes trouble on multi-user systems (compute servers, etc.) - one user installs Conda.jl and creates and owns "tmp/installer.sh", then another user tries to install Conda.jl and get's the error that "installer.sh" can't be unlinked (because it's owned by the other user).

We should use a more random filename for the installer script. :-)

@stevengj
Copy link
Member

stevengj commented Jan 22, 2024

I agree, we should use tempname() here and delete it when we are done.

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

No branches or pull requests

2 participants