From 4d6ff88115bb19ada63a530e158d4303f8e167da Mon Sep 17 00:00:00 2001 From: Jared Watts Date: Wed, 9 Oct 2024 20:50:18 +0200 Subject: [PATCH] build: add go.cachedir target to makefile Signed-off-by: Jared Watts --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 02181c5..b1d7306 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,15 @@ fallthrough: submodules @echo Initial setup complete. Running make again . . . @make +# NOTE(hasheddan): the build submodule currently overrides XDG_CACHE_HOME in +# order to force the Helm 3 to use the .work/helm directory. This causes Go on +# Linux machines to use that directory as the build cache as well. We should +# adjust this behavior in the build submodule because it is also causing Linux +# users to duplicate their build cache, but for now we just make it easier to +# identify its location in CI so that we cache between builds. +go.cachedir: + @go env GOCACHE + # Update the submodules, such as the common build scripts. submodules: @git submodule sync