From 5e528131114bb727bcd3bf73c937295df1d9ca57 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 4 Jan 2024 14:36:10 +1100 Subject: [PATCH] troubleshoot go cache location --- .drone.sh | 5 ++++- .drone.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.sh b/.drone.sh index ce89b18..2ffcb1b 100644 --- a/.drone.sh +++ b/.drone.sh @@ -5,7 +5,10 @@ export CGO_ENABLED=0 export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S') echo $now -make drone-cache +go env GOCACHE +GOCACHE=/tmp/cache +export GOCACHE +go env GOCACHE echo "build commences" go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt echo "build complete" diff --git a/.drone.yml b/.drone.yml index 319dd9c..4989b47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,9 +26,9 @@ steps: restore: true cache_key: "volume" archive_format: "gzip" - # filesystem_cache_root: "/tmp/cache" - mount: - - 'vendor' + filesystem_cache_root: "/tmp/cache" + #mount: + # - 'vendor' volumes: - name: cache path: /tmp/cache @@ -51,9 +51,9 @@ steps: rebuild: true cache_key: "volume" archive_format: "gzip" - # filesystem_cache_root: "/tmp/cache" - mount: - - 'vendor' + filesystem_cache_root: "/tmp/cache" + #mount: + # - 'vendor' volumes: - name: cache path: /tmp/cache