From e63df49a8d23c132ce3040d0d5da4091993c0660 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Tue, 4 Apr 2023 21:02:49 +0000 Subject: [PATCH] fix: actually push to buildcaches --- spack-environment/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spack-environment/Makefile b/spack-environment/Makefile index 1a2654fd7..c3147e91c 100644 --- a/spack-environment/Makefile +++ b/spack-environment/Makefile @@ -19,13 +19,14 @@ include $(SPACK_ENV)/spack.mk endif $(SPACK_ENV)/push: $(addprefix $(SPACK_ENV)/push/,$($(SPACK_ENV)/SPACK_PACKAGE_IDS)) - @mkdir -p $(BUILDCACHE) + @mkdir -p $(BUILDCACHE_DIR) $(foreach buildcache, $(BUILDCACHE_DIR), $(SPACK) buildcache update-index --directory $(buildcache) ;) $(foreach buildcache, $(BUILDCACHE_MIRROR), $(SPACK) buildcache update-index --mirror-name $(buildcache) ;) $(SPACK_ENV)/push/%: $(SPACK_ENV)/install/% @mkdir -p $(dir $@) - $(foreach buildcache, $(BUILDCACHE), $(SPACK) buildcache create --allow-root --only=package --unsigned $(buildcache) /$(HASH) ;) # push $(SPEC) + $(foreach buildcache, $(BUILDCACHE_DIR), $(SPACK) buildcache create --allow-root --only=package --unsigned $(buildcache) /$(HASH) ;) # push $(SPEC) + $(foreach buildcache, $(BUILDCACHE_MIRROR), $(SPACK) buildcache create --allow-root --only=package --unsigned $(buildcache) /$(HASH) ;) # push $(SPEC) @touch $@ $(SPACK_ENV)/spack.lock: $(SPACK_ENV)/spack.yaml Makefile -- GitLab