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

Conflict Unload: new mechanism to unload conflicts when loading a module #242

Closed
xdelaruelle opened this issue Mar 19, 2019 · 5 comments
Closed
Milestone

Comments

@xdelaruelle
Copy link
Collaborator

Following this discussion on the mailing-list.

Automatically unloading modules that conflict with one asked to be loaded seems to be an interesting feature. Actually, this is an additional automated mechanism that improves the existing automated handling mechanism set.

This should apply to any load evaluation (raised by a load or a switch sub-commands).

Still need to determine the complete scope of these conflicting modules automatic unload.

@xdelaruelle
Copy link
Collaborator Author

Additionnal details on this message

@reinh-bader
Copy link

I do suggest enabling this behaviour with an additional switch in an interactive environment. It is probably OK to make this behaviour default if the "module load" is issued inside a module file.

Regards
Reinhold

@wenzler
Copy link

wenzler commented Apr 2, 2020

I still see the collision handling as incompatible with modules3 crude way (as it was present in 4.1?)
This must for sure not be a default behaviour in any way to allow some compatibility to existing module pools.

@RobyB
Copy link

RobyB commented Apr 2, 2020 via email

@xdelaruelle
Copy link
Collaborator Author

@wenzler Conflict Unload will be part of the automated module handling mode which has been introduced in version 4.2 of Modules and which is off by default, and will stay off by default for the duration of Modules 4.

@RobyB That is a nice developer challenge, but of course it should not impact modulefile developers, just the module command developer. Regarding the example you provide, the idea is to enable users to just module load Top/C/C.1/C.1.3 which will automatically unload Top/C/C.1/C.1.2.

@xdelaruelle xdelaruelle added this to the 5.5.0 milestone Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants