From 1163c9e027bed7a5c1bf7cb7fa2b62a6d205461c Mon Sep 17 00:00:00 2001 From: "Fabian.Jakub" <fabian@jakub.com> Date: Mon, 15 May 2023 14:43:46 +0200 Subject: [PATCH] change order when to add upstreams bc config folder may not be there yet --- platforms/common/spack_utils.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platforms/common/spack_utils.sh b/platforms/common/spack_utils.sh index 9f45ee8..05f1ba0 100644 --- a/platforms/common/spack_utils.sh +++ b/platforms/common/spack_utils.sh @@ -4,6 +4,7 @@ function _install_spack() { git clone --depth 1 ${SPACK_URL} -b ${SPACK_BRANCH} ${SPACK_ROOT} fi + _init_spack "$SPACK_INIT_CMD" "$SPACK_ROOT" if [ ! -z "${SPACK_UPSTREAMS}" ]; then UPSTREAMS_CONFIG=${SPACK_ROOT}/etc/spack/upstreams.yaml @@ -24,8 +25,6 @@ EOF done fi - _init_spack "$SPACK_INIT_CMD" "$SPACK_ROOT" - if [ ! -z "${SPACK_EXTERNALS}" ] ; then for ext in ${SPACK_EXTERNALS}; do spack external find $ext -- GitLab