From caa68b451ec53de4434ac09a40bf2a5ed95a6fae Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Tue, 19 Aug 2025 16:34:25 +0200 Subject: [PATCH] Disable module extensions for EnvModules for the moment Environment Modules needs to support *informational extension* to safely handle the module extensions generated by EasyBuild. See envmodules/modules#585. Until then, it is safer to disable support the module extensions for Environment Modules, otherwise several builds may fail. Signed-off-by: Xavier Delaruelle --- easybuild/tools/modules.py | 4 +++- test/framework/module_generator.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/easybuild/tools/modules.py b/easybuild/tools/modules.py index 7de55a58fd..513d102d68 100644 --- a/easybuild/tools/modules.py +++ b/easybuild/tools/modules.py @@ -1790,7 +1790,9 @@ def __init__(self, *args, **kwargs): self.supports_tcl_getenv = True self.supports_tcl_check_group = version >= LooseVersion(self.REQ_VERSION_TCL_CHECK_GROUP) self.supports_safe_auto_load = True - self.supports_extensions = True + # Environment Modules should support "informational extension" to safely handle the + # extensions built here (see https://github.com/envmodules/modules/issues/585) + self.supports_extensions = False def check_module_function(self, allow_mismatch=False, regex=None): """Check whether selected module tool matches 'module' function definition.""" diff --git a/test/framework/module_generator.py b/test/framework/module_generator.py index 0dba037d17..4669cf6888 100644 --- a/test/framework/module_generator.py +++ b/test/framework/module_generator.py @@ -794,6 +794,10 @@ def append_paths(*args, **kwargs): def test_module_extensions(self): """test the extensions() for extensions""" + # not supported by Environment Modules for the moment + if isinstance(self.modtool, EnvironmentModules): + return + # check if extensions option is enabled and some module extensions are defined init_config(build_options={'module_extensions': True})