Skip to content

Commit eb66fb1

Browse files
committed
move module update up, needs to be run before we run eb --show-config
1 parent 02a86ab commit eb66fb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

load_easybuild_module.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ fi
111111

112112
echo ">> Loading EasyBuild v${EB_VERSION} module..."
113113
module ${IGNORE_CACHE} load EasyBuild/${EB_VERSION}
114+
# EESSI-extend checks for the EB version being used.
115+
# If EESSI-extend is already loaded, we need to reload it in order to reevaluate the checks and reconfigure EasyBuild.
116+
module is-loaded EESSI-extend && module update
117+
114118
eb_show_system_info_out=${TMPDIR}/eb_show_system_info.out
115119
${EB} --show-system-info > ${eb_show_system_info_out}
116120
if [[ $? -eq 0 ]]; then
@@ -128,8 +132,4 @@ else
128132
fatal_error "EasyBuild not working?!"
129133
fi
130134

131-
# EESSI-extend checks for the EB version being used.
132-
# If EESSI-extend is already loaded, we need to reload it in order to reevaluate the checks.
133-
module is-loaded EESSI-extend && module update
134-
135135
unset EB_VERSION

0 commit comments

Comments
 (0)