Skip to content

Commit

Permalink
Add the buildcache mirrors then disable them by renamig mirrors.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Sep 19, 2024
1 parent 93632ed commit e4a7696
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions bin/make_subspack
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,17 @@ message "adding package repos..."
done
)
if [ "$enable_caches" != "" ]
echo "Adding buildcache $binary_cache"
$SPACK_ROOT/bin/spack mirror add --scope site fnal $binary_cache
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache
message "Adding backup buildcache $binary_cache_bak"
$SPACK_ROOT/bin/spack mirror add --scope site scisoft $binary_cache_bak
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache_bak
$SPACK_ROOT/bin/spack -k buildcache keys --install --trust --force
if [ "$enable_caches" = "" ]
then
echo "Adding buildcache $binary_cache"
$SPACK_ROOT/bin/spack mirror add --scope site fnal $binary_cache
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache
message "Adding backup buildcache $binary_cache_bak"
$SPACK_ROOT/bin/spack mirror add --scope site scisoft $binary_cache_bak
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache_bak
$SPACK_ROOT/bin/spack -k buildcache keys --install --trust --force
echo "Disabling buildcache mirrors."
mv $SPACK_ROOT/etc/spack/mirrors.yaml $SPACK_ROOT/etc/spack/mirrors.yaml.bak
fi
#symlink in environments from upstream
cd $SPACK_ROOT/var/spack
Expand Down

0 comments on commit e4a7696

Please # to comment.