Skip to content

Commit

Permalink
fix deprecated config:module_roots
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Nov 7, 2022
1 parent 64f6ceb commit 48a964e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export PATH="$PWD:$PATH"
curl -LfSs "https://api.github.com/repos/spack/spack/tarball/$SPACK_SHA" | tar --strip-components=1 -xz -C spack_src
echo "$SPACK_SHA" > spack_sha

cp "$GITHUB_WORKSPACE/build/6_spack/config.yaml" spack_src/etc/spack/
cp "$GITHUB_WORKSPACE/build/6_spack/config.yaml" "$GITHUB_WORKSPACE/build/6_spack/modules.yaml" spack_src/etc/spack/

find . '(' -iname '*.pyc' -o -iname '__pycache__' ')' -print0 | xargs --null rm -rf
NO_ENTRYPOINT='' "spack-$ARCH-old.x" python -m compileall -q spack_src/ install/ view/ ._view/ || true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bump_spack: 6_spack
$(UNSHARE) rm -rf /build/6_spack/spack_src
$(UNSHARE) mkdir /build/6_spack/spack_src
$(UNSHARE) bash -c 'curl -Ls "https://api.github.com/repos/spack/spack/tarball/develop" | tar --strip-components=1 -xz -C /build/6_spack/spack_src'
$(UNSHARE) cp /build/6_spack/config.yaml /build/6_spack/spack_src/etc/spack/
$(UNSHARE) cp /build/6_spack/config.yaml /build/6_spack/modules.yaml /build/6_spack/spack_src/etc/spack/
$(UNSHARE) bash -c 'cd /build/6_spack && find . -iname "__pycache__" | xargs rm -rf'
$(UNSHARE) bash -c 'cd /build/6_spack && ./spack python -m compileall spack_src/ install/ ._view/ 1> /dev/null || true'

Expand Down
5 changes: 1 addition & 4 deletions build/6_spack/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ config:
test_stage: $tempdir/$user/test_stage
source_cache: $tempdir/$user/source_cache
misc_cache: $tempdir/$user/misc_cache
module_roots:
tcl: ~/spack/share/spack/modules
lmod: ~/spack/share/spack/lmod
install_tree:
root: ~/spack/opt/spack
root: ~/spack/opt/spack
5 changes: 5 additions & 0 deletions build/6_spack/modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
modules:
default:
roots:
tcl: ~/spack/share/spack/modules
lmod: ~/spack/share/spack/lmod

0 comments on commit 48a964e

Please sign in to comment.