@@ -32,25 +32,20 @@ pre-install: spack-setup
3232 $(SANDBOX ) $(STORE ) /pre-install-hook
3333
3434mirror-setup : spack-setup{% if pre_install_hook % } pre-install{% endif % }
35+
3536 {% if cache %}
36- # The old way of managing mirrors
3737 $(SANDBOX) $(SPACK) buildcache keys --install --trust
38- {% if cache.key %}
39- $(SANDBOX ) $(SPACK ) gpg trust {{ cache.key }}
40- {% endif %}
4138 {% endif %}
4239 {% if mirrors %}
43- @echo " Adding mirrors and gpg keys."
44- {% for mirror_info in mirrors | reverse %}
45- $(SANDBOX ) $(SPACK ) mirror add --scope=site {{ mirror_info.name }} {{ mirror_info.url }}
46- $(SANDBOX ) $(SPACK ) gpg trust {{ mirror_info.key_path }}
40+ @echo "Adding mirror gpg keys."
41+ {% for mirror in mirrors | reverse %}
42+ {% if mirror.public_key %}
43+ $(SANDBOX) $(SPACK) gpg trust {{ mirror.public_key }}
44+ {% endif %}
4745 {% endfor %}
4846 @echo "Current mirror list:"
4947 $(SANDBOX) $(SPACK) mirror list
5048 {% endif %}
51- {% for mirror_info in filter(lambda m: m[' bootstrap' ], mirrors) | filter () %}
52- $(SANDBOX ) $(SPACK ) bootstrap add --scope=site {{ mirror_info.name }} bootstrap/{{ mirror_info.name }}
53- {% endfor %}
5449 touch mirror-setup
5550
5651compilers : mirror-setup
@@ -89,14 +84,14 @@ store.squashfs: post-install
8984
9085# Force push all built packages to the build cache
9186cache-force : mirror-setup
92- {% if cache.key %}
87+ {% if cache %}
9388 $(warning ================================================================================)
9489 $(warning Generate the config in order to force push partially built compiler environments)
9590 $(warning if this step is performed with partially built compiler envs, you will)
9691 $(warning likely have to start a fresh build (but that's okay, because build caches FTW))
9792 $(warning ================================================================================)
9893 $(SANDBOX) $(MAKE) -C generate-config
99- $(SANDBOX) $(SPACK) --color=never -C $(STORE)/config buildcache create --rebuild-index --only=package alpscache \
94+ $(SANDBOX) $(SPACK) --color=never -C $(STORE)/config buildcache create --rebuild-index --only=package cache.name \
10095 $$($(SANDBOX) $(SPACK_HELPER) -C $(STORE)/config find --format '{name};{/hash};version={version}' \
10196 | grep -v -E '^({% for p in exclude_from_cache %}{{ pipejoiner() }}{{ p }}{% endfor %});'\
10297 | grep -v -E 'version=git\.'\
0 commit comments