summaryrefslogtreecommitdiff
path: root/testing/exercism/APKBUILD
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-09-10 05:58:26 +0000
committerpsykose <alice@ayaya.dev>2022-09-10 07:58:31 +0200
commitaa4f06014882448de48cffbfad7f4014b58b751e (patch)
treef2839b9d9b0e32b32b1fcaf4d4f8131d5427f4e5 /testing/exercism/APKBUILD
parentb22d13f8f6ba5f8525398ce91295e7ee9fc48b90 (diff)
downloadaports-aa4f06014882448de48cffbfad7f4014b58b751e.zip
testing/*: allow overriding go cache variables
Diffstat (limited to 'testing/exercism/APKBUILD')
-rw-r--r--testing/exercism/APKBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/exercism/APKBUILD b/testing/exercism/APKBUILD
index 723c8b9751f..a9ddb5012e2 100644
--- a/testing/exercism/APKBUILD
+++ b/testing/exercism/APKBUILD
@@ -17,9 +17,9 @@ subpackages="
source="$pkgname-$pkgver.tar.gz::https://github.com/exercism/cli/archive/v$pkgver.tar.gz"
builddir="$srcdir"/cli-$pkgver
-export GOCACHE="$srcdir/go-cache"
-export GOTMPDIR="$srcdir"
-export GOMODCACHE="$srcdir/go"
+export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
+export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
+export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export GOFLAGS="$GOFLAGS -modcacherw"
prepare() {