Skip to content

Commit 3394278

Browse files
committed
fix: rename scope site -> spack
1 parent ea3120a commit 3394278

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

containers/debian/Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ if [ -n "${SPACKPACKAGES_CHERRYPICKS}" ] ; then
231231
done
232232
fi
233233
git -C ${SPACKPACKAGES_ROOT} gc --prune=all --aggressive
234-
spack repo add --scope site "${SPACKPACKAGES_ROOT}/repos/spack_repo/builtin"
234+
spack repo add --scope spack "${SPACKPACKAGES_ROOT}/repos/spack_repo/builtin"
235235
EOF
236236

237237
## Setup build configuration
@@ -246,8 +246,8 @@ declare -A target=(
246246
["linux/arm64"]="aarch64"
247247
)
248248
target=${target[${TARGETPLATFORM}]}
249-
spack config --scope site add "packages:all:require:[target=${target}]"
250-
spack config --scope site add "packages:all:target:[${target}]"
249+
spack config --scope spack add "packages:all:require:[target=${target}]"
250+
spack config --scope spack add "packages:all:target:[${target}]"
251251
spack config blame packages
252252
mkdir -p $HOME/.spack/ # workaround for Spack not creating config directory automatically in some versions (see https://github.com/spack/spack/issues/51564)
253253
spack config --scope user add "config:suppress_gpg_warnings:true"
@@ -257,7 +257,7 @@ spack config --scope user add "config:source_cache:/var/cache/spack"
257257
spack config --scope user add "config:install_tree:root:/opt/software"
258258
spack config --scope user add "config:ccache:true"
259259
spack config blame config
260-
spack compiler find --scope site
260+
spack compiler find --scope spack
261261
# Ensure GCC externals have LTO‑safe binutils configured.
262262
#
263263
# 1. LTO issue being worked around:
@@ -291,9 +291,9 @@ EOF
291291
## - allow llvm to be buildable for py-numba > py-llvmlite
292292
RUN <<EOF
293293
set -e
294-
spack external find --scope site llvm
295-
spack external find --scope site --not-buildable gcc
296-
spack external find --scope site --not-buildable --path /usr/local/cuda/bin cuda
294+
spack external find --scope spack llvm
295+
spack external find --scope spack --not-buildable gcc
296+
spack external find --scope spack --not-buildable --path /usr/local/cuda/bin cuda
297297
spack config blame packages
298298
EOF
299299

@@ -302,8 +302,8 @@ EOF
302302
## - the write-enabled mirror is provided later as a secret mount
303303
RUN --mount=type=cache,target=/var/cache/spack <<EOF
304304
set -e
305-
spack mirror add --scope site --signed spack-${SPACK_VERSION} https://binaries.spack.io/${SPACK_VERSION}
306-
spack mirror add --scope site --unsigned ghcr-${SPACKPACKAGES_VERSION} oci://ghcr.io/eic/spack-${SPACKPACKAGES_VERSION}
305+
spack mirror add --scope spack --signed spack-${SPACK_VERSION} https://binaries.spack.io/${SPACK_VERSION}
306+
spack mirror add --scope spack --unsigned ghcr-${SPACKPACKAGES_VERSION} oci://ghcr.io/eic/spack-${SPACKPACKAGES_VERSION}
307307
spack mirror list
308308
EOF
309309

@@ -316,7 +316,7 @@ RUN <<EOF
316316
set -e
317317
git clone --filter=tree:0 https://github.com/${KEY4HEPSPACK_ORGREPO}.git ${KEY4HEPSPACK_ROOT}
318318
git -C ${KEY4HEPSPACK_ROOT} checkout ${KEY4HEPSPACK_SHA:-${KEY4HEPSPACK_VERSION}}
319-
spack repo add --scope site "${KEY4HEPSPACK_ROOT}"
319+
spack repo add --scope spack "${KEY4HEPSPACK_ROOT}"
320320
EOF
321321

322322
## Setup eic-spack (no need for cherry-picks)
@@ -328,5 +328,5 @@ RUN <<EOF
328328
set -e
329329
git clone --filter=tree:0 https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT}
330330
git -C ${EICSPACK_ROOT} checkout ${EICSPACK_SHA:-${EICSPACK_VERSION}}
331-
spack repo add --scope site "${EICSPACK_ROOT}"
331+
spack repo add --scope spack "${EICSPACK_ROOT}"
332332
EOF

containers/eic/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,13 @@ RUN ldconfig
366366
ENV SPACK_DISABLE_LOCAL_CONFIG="true"
367367
RUN <<EOF
368368
set -e
369-
spack config --scope site add "config:install_tree:root:~/spack"
370-
spack config --scope site add "config:source_cache:~/.spack/cache"
371-
spack config --scope site add "config:binary_index_root:~/.spack"
372-
spack config --scope site add "config:environments_root:~/.spack/env"
373-
spack config --scope site add "config:suppress_gpg_warnings:true"
369+
spack config --scope spack add "config:install_tree:root:~/spack"
370+
spack config --scope spack add "config:source_cache:~/.spack/cache"
371+
spack config --scope spack add "config:binary_index_root:~/.spack"
372+
spack config --scope spack add "config:environments_root:~/.spack/env"
373+
spack config --scope spack add "config:suppress_gpg_warnings:true"
374374
spack config blame config
375-
spack config --scope site add "upstreams:eic-shell:install_tree:/opt/software"
375+
spack config --scope spack add "upstreams:eic-shell:install_tree:/opt/software"
376376
spack config blame upstreams
377377
EOF
378378

0 commit comments

Comments
 (0)