Repository navigation
Set family version environment variables on family command - #739
Merged
Merged
Conversation
Hierarchical modulefiles build the path of the directory to enable from the name and the version of the module providing a family. Only the name was available, through the MODULES_FAMILY_<NAME> and LMOD_FAMILY_<NAME> environment variables. Define MODULES_FAMILY_<NAME>_VERSION when processing the family modulefile command, and LMOD_FAMILY_<NAME>_VERSION for compatibility with modulefiles written for Lmod. Variables are set to an empty string when the loading module has no version, so they can be referred whatever the module providing the family. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hierarchical modulefiles build the path of the directory to enable from the name and the version of the module providing a family. Only the name was available so far, through the
MODULES_FAMILY_<NAME>andLMOD_FAMILY_<NAME>environment variables.familymodulefile command now also definesMODULES_FAMILY_<NAME>_VERSION, set to the version of the loading module (part of its name after the last/, likemodule-info moduleversion).LMOD_FAMILY_<NAME>_VERSIONis defined with the same value, for compatibility with modulefiles written for Lmod.falsestring in this situation, which is documented as a difference.Man pages, changes document, Lmod Tcl modulefile compatibility design notes and NEWS are updated, as well as the expected output of the
family,conflict_unloadandprovidetests.