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

Sticky escape with module switch #492

Closed
xdelaruelle opened this issue May 13, 2023 · 0 comments
Closed

Sticky escape with module switch #492

xdelaruelle opened this issue May 13, 2023 · 0 comments
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

Sticky or super-sticky modules can be escaped with module switch when switch-on module cannot be found. This is an issue as such sticky module should not be able to unload.

$ find modulefiles/foo
modulefiles/foo
modulefiles/foo/.modulerc
modulefiles/foo/1.0
$ cat modulefiles/foo/.modulerc 
#%Module
module-tag sticky foo
$ module use ./modulefiles
$ module load foo
$ module switch foo/2.0
Switching from foo/1.0 to foo/2.0
  ERROR: Unable to locate a modulefile for 'foo/2.0'
$ module list
No Modulefiles Currently Loaded.

In this example, foo/1.0 should stay loaded as it is tagged sticky.

Switch-on module should be checked before unloading sticky module to verify if an equivalent sticky module can be loaded.

@xdelaruelle xdelaruelle added this to the 5.3 milestone May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant