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

[Julia-1.8.5] Prevent setting environment that breaks Julia #17995

Closed
wants to merge 1 commit into from
Closed

[Julia-1.8.5] Prevent setting environment that breaks Julia #17995

wants to merge 1 commit into from

Conversation

exaexa
Copy link

@exaexa exaexa commented May 31, 2023

Julia breaks if the depot path is set to an unwritable location. At the same time, setting ~ into environment variables typically forces a creation of actual directory named ~, creating mild risk of fun rm -fr stories and impacting data of novice usrers.

Removing all environment fixes the problem and is generally safe (Julia will properly use a well-defaulted depot path).

cc @laurentheirendt @ekieffer (Thanks @ULHPC team for applying and quicktesting this fix).

Julia breaks if the depot path is set to an unwritable location. At the same time, setting ~ into environment variables typically forces a creation of actual directory named `~`, creating mild risk of fun `rm -fr` stories and impacting data of novice usrers.

Removing all environment fixes the problem and is generally safe (Julia will properly use a well-defaulted depot path).
@exaexa
Copy link
Author

exaexa commented May 31, 2023

@boegel boegel requested a review from lexming June 4, 2023 09:36
@boegel boegel added the bug fix label Jun 4, 2023
@boegel boegel added this to the next release (4.7.3?) milestone Jun 4, 2023
@boegel boegel modified the milestones: 4.8.0, release after 4.8.0 Jul 6, 2023
Copy link
Contributor

@lexming lexming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks Julia packages distributed through EasyBuild like IJulia. Loading a Julia package through a module file on top of this easyconfig of Julia will disable the user's depot.

I agree with you in the dangers of using ~. I addressed that issue in the recent changes of #17976. I suggest to close this PR and maybe we can continue on that one, since that covers many more Julia easyconfigs.

@exaexa
Copy link
Author

exaexa commented Jul 8, 2023

@lexming Hi, thanks, I'm OK with closing this (actually let's do that right away). If I get it right, the : depot path from the other PR serves as a default and is still sufficiently safe in a way the IJulia recipe can append its depot to it?

@exaexa exaexa closed this Jul 8, 2023
@lexming
Copy link
Contributor

lexming commented Jul 10, 2023

@exaexa that's exactly it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants