diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2022-08-02 07:55:54 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2022-08-02 07:55:54 +0300 |
commit | 157e6b6ad8fd7aa0ebdd43727f00b81f34b100a1 (patch) | |
tree | 1cfe7f8fe300045b3dfdc4f4528af410a457195e | |
parent | 8a83f809c69045824453deaefafc34b93b52649b (diff) | |
parent | 2a031fdca0745417c59b15a0d6f8f2d02d4e2e2c (diff) |
Merge branch 'wc-makefile-cache-exist' into 'master'
Makefile: Check if $GOCACHE exists
See merge request gitlab-org/gitaly!4774
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} |