Skip to content

Commit c8fb7cb

Browse files
authored
Merge pull request #79 from bedroge/support_older_eb_versions
Reload EESSI-extend when switching to a different EasyBuild version
2 parents ef27169 + 42b4fe0 commit c8fb7cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

load_easybuild_module.sh

Lines changed: 4 additions & 0 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 load EESSI-extend
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

0 commit comments

Comments
 (0)