File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,12 @@ else
358358 new_easystacks=$( echo " ${changed_easystacks} " | (grep -v " /rebuilds/" || true))
359359 for easystack_file in ${rebuild_easystacks} ${new_easystacks} ; do
360360
361+ # make sure that easystack file being picked up is for EESSI version that we're building for...
362+ echo " ${easystack_file} " | grep -q " ^easystacks/${EESSI_VERSION} /"
363+ if [ $? -ne 0 ]; then
364+ fatal_error " Easystack file ${easystack_file} is not intended for EESSI version ${EESSI_VERSION} , giving up!"
365+ fi
366+
361367 echo -e " Processing easystack file ${easystack_file} ...\n\n"
362368
363369 # determine version of EasyBuild module to load based on EasyBuild version included in name of easystack file
Original file line number Diff line number Diff line change 99
1010version=$1
1111
12- SOFTWARE_LAYER_TARBALL_URL =" https://github.com/EESSI/software-layer/tarball/${version} -software.eessi.io "
12+ SOFTWARE_LAYER_SCRIPTS_TARBALL_URL =" https://github.com/EESSI/software-layer-scripts /tarball/main "
1313
1414TOPDIR=$( dirname $( realpath $0 ) )
1515
2626tartmp=$( mktemp -t -d init.XXXXX)
2727mkdir " ${tartmp} /${version} "
2828tarname=" eessi-${version} -init-$( date +%s) .tar.gz"
29- curl -Ls ${SOFTWARE_LAYER_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */init/'
29+ curl -Ls ${SOFTWARE_LAYER_SCRIPTS_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */init/'
3030source " ${tartmp} /${version} /init/minimal_eessi_env"
3131if [ " ${EESSI_VERSION} " != " ${version} " ]
3232then
@@ -42,7 +42,7 @@ echo_green "Done! Created tarball ${tarname}."
4242tartmp=$( mktemp -t -d scripts.XXXXX)
4343mkdir " ${tartmp} /${version} "
4444tarname=" eessi-${version} -scripts-$( date +%s) .tar.gz"
45- curl -Ls ${SOFTWARE_LAYER_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */scripts/'
45+ curl -Ls ${SOFTWARE_LAYER_SCRIPTS_TARBALL_URL } | tar xzf - -C " ${tartmp} /${version} " --strip-components=1 --no-wildcards-match-slash --wildcards ' */scripts/'
4646tar czf " ${tarname} " -C " ${tartmp} " " ${version} "
4747rm -rf " ${tartmp} "
4848
You can’t perform that action at this time.
0 commit comments