From d23716136bd6618d1e3c20102ad2479a7b732e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Andr=C3=A9=20Reuter?= Date: Tue, 23 Sep 2025 15:37:21 +0200 Subject: [PATCH] allow unresolved templates in bundle easyblock when handling components --- easybuild/easyblocks/generic/bundle.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/easybuild/easyblocks/generic/bundle.py b/easybuild/easyblocks/generic/bundle.py index 80a8513355a..fb0bf2ade20 100644 --- a/easybuild/easyblocks/generic/bundle.py +++ b/easybuild/easyblocks/generic/bundle.py @@ -378,8 +378,9 @@ def install_step(self): else: # Explicit call as EasyBlocks might set additional environment variables in # the make_module step, which may be required for later component builds. - # Set fake arg to True, as module components should not try to create their own module. - comp.make_module_step(fake=True) + # Set fake arg to True, as module components should not try to create their own module + with comp.cfg.allow_unresolved_templates(): + comp.make_module_step(fake=True) # Update current environment with component environment to ensure stuff provided # by this component can be picked up by installation of subsequent components @@ -436,7 +437,8 @@ def make_module_step(self, *args, **kwargs): # Explicit call required as adding step to 'install_step' is not sufficient # for module-only build. Set fake arg to True, as module components should # not try to create their own module. - comp.make_module_step(*args, **dict(kwargs, fake=True)) + with comp.cfg.allow_unresolved_templates(): + comp.make_module_step(*args, **dict(kwargs, fake=True)) for env_var_name, env_var_val in comp.module_load_environment.items(): if env_var_name in self.module_load_environment: