Skip to content

Commit a621ae5

Browse files
authored
Merge pull request #7 from boegel/EESSI_version_check
make sure that EESSI version for which build is triggered matches with location of easystack file + fix URL in `create_directory_tarballs.sh`
2 parents 6e1dbce + 19efe9e commit a621ae5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

EESSI-install-software.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

create_directory_tarballs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99

1010
version=$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

1414
TOPDIR=$(dirname $(realpath $0))
1515

@@ -26,7 +26,7 @@ fi
2626
tartmp=$(mktemp -t -d init.XXXXX)
2727
mkdir "${tartmp}/${version}"
2828
tarname="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/'
3030
source "${tartmp}/${version}/init/minimal_eessi_env"
3131
if [ "${EESSI_VERSION}" != "${version}" ]
3232
then
@@ -42,7 +42,7 @@ echo_green "Done! Created tarball ${tarname}."
4242
tartmp=$(mktemp -t -d scripts.XXXXX)
4343
mkdir "${tartmp}/${version}"
4444
tarname="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/'
4646
tar czf "${tarname}" -C "${tartmp}" "${version}"
4747
rm -rf "${tartmp}"
4848

0 commit comments

Comments
 (0)