Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2022-08-02 07:55:54 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-08-02 07:55:54 +0300
commit157e6b6ad8fd7aa0ebdd43727f00b81f34b100a1 (patch)
tree1cfe7f8fe300045b3dfdc4f4528af410a457195e
parent8a83f809c69045824453deaefafc34b93b52649b (diff)
parent2a031fdca0745417c59b15a0d6f8f2d02d4e2e2c (diff)
Merge branch 'wc-makefile-cache-exist' into 'master'
Makefile: Check if $GOCACHE exists See merge request gitlab-org/gitaly!4774
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 165f46256..c6ef37e47 100644
--- a/Makefile
+++ b/Makefile
@@ -616,7 +616,7 @@ remove-legacy-go-mod:
# configured in GOCACHE_MAX_SIZE_KB.
.PHONY: clear-go-build-cache-if-needed
clear-go-build-cache-if-needed:
- ${Q}if [ $$(du -sk ${GOCACHE} | cut -f 1) -gt ${GOCACHE_MAX_SIZE_KB} ]; then go clean --cache; fi
+ ${Q}if [ -d ${GOCACHE} ] && [ $$(du -sk ${GOCACHE} | cut -f 1) -gt ${GOCACHE_MAX_SIZE_KB} ]; then go clean --cache; fi
${BUILD_DIR}/intermediate/gitaly: GO_BUILD_TAGS = ${SERVER_BUILD_TAGS}
${BUILD_DIR}/intermediate/gitaly: remove-legacy-go-mod ${GITALY_PACKED_EXECUTABLES}