-
Notifications
You must be signed in to change notification settings - Fork 202
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
module function check does not support Environment Modules #4368
Labels
Milestone
Comments
Defining a specific I will provide such fix that tests |
xdelaruelle
added a commit
to xdelaruelle/easybuild-framework
that referenced
this issue
Oct 29, 2023
Default check_module_function tests that module command is called from module shell function. With EnvironmentModules v4+, module command is usually called from the _module_raw shell function. This commit adds a specific version of check_module_function for EnvironmentModules class. Module command is first checked within _module_raw shell function definition. If not found, default test (that checks module function) is run. Adapt "test_module_mismatch" unit test to specifically check module command definition with EnvironmentModules. Fixes easybuilders#4368
xdelaruelle
added a commit
to xdelaruelle/easybuild-framework
that referenced
this issue
Oct 29, 2023
Default check_module_function tests that module command is called from module shell function. With EnvironmentModules v4+, module command is usually called from the _module_raw shell function. This commit adds a specific version of check_module_function for EnvironmentModules class. Module command is first checked within _module_raw shell function definition. If not found, default test (that checks module function) is run. Add new unit test "test_environment_modules_specific" to specifically check module command definition with EnvironmentModules. Fixes easybuilders#4368
xdelaruelle
added a commit
to xdelaruelle/easybuild-framework
that referenced
this issue
Nov 8, 2023
Default check_module_function tests that module command is called from module shell function. With EnvironmentModules v4+, module command is usually called from the _module_raw shell function. This commit adds a specific version of check_module_function for EnvironmentModules class. Module command is first checked within _module_raw shell function definition. If not found, default test (that checks module function) is run. Add new unit test "test_environment_modules_specific" to specifically check module command definition with EnvironmentModules. Fixes easybuilders#4368
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to use EB with Environment Modules, the module function check raises an error:
Module command cannot be found in
module
shell function definition:_module_raw
shell function_module_raw
shell function when it has been initialized in an interactive shell sessionThe text was updated successfully, but these errors were encountered: