From 58d3c4723a1d95eb9052c304594b918cadd5fe8c Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Thu, 25 May 2023 07:13:20 +0000
Subject: [PATCH] fix: remove build cache dir from makefile

---
 spack-environment/Makefile | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/spack-environment/Makefile b/spack-environment/Makefile
index 8f4dba412..6b6b66d96 100644
--- a/spack-environment/Makefile
+++ b/spack-environment/Makefile
@@ -7,7 +7,6 @@ export SPACK_COLOR = always
 
 SPACK_ENV ?= dev
 
-BUILDCACHE_DIR := $(SPACK_ENV)/cache
 BUILDCACHE_MIRROR :=
 
 .PHONY: all clean
@@ -20,12 +19,10 @@ endif
 
 $(SPACK_ENV)/push: $(addprefix $(SPACK_ENV)/push/,$($(SPACK_ENV)/SPACK_PACKAGE_IDS))
 	@mkdir -p $(BUILDCACHE_DIR)
-	$(foreach buildcache, $(BUILDCACHE_DIR), $(SPACK) buildcache update-index --mirror-url $(buildcache) ;)
 	$(foreach buildcache, $(BUILDCACHE_MIRROR), $(SPACK) buildcache update-index --mirror-url $(buildcache) ;)
 
 $(SPACK_ENV)/push/%: $(SPACK_ENV)/install/%
 	@mkdir -p $(dir $@)
-	$(foreach buildcache, $(BUILDCACHE_DIR), $(SPACK) buildcache create --allow-root --only=package --unsigned --directory $(buildcache) /$(HASH) ;) # push $(SPEC)
 	$(foreach buildcache, $(BUILDCACHE_MIRROR), $(SPACK) buildcache create --allow-root --only=package --unsigned --mirror-name $(buildcache) /$(HASH) ;) # push $(SPEC)
 	@touch $@
 
-- 
GitLab