diff options
author | psykose <alice@ayaya.dev> | 2022-09-10 05:58:26 +0000 |
---|---|---|
committer | psykose <alice@ayaya.dev> | 2022-09-10 07:58:31 +0200 |
commit | aa4f06014882448de48cffbfad7f4014b58b751e (patch) | |
tree | f2839b9d9b0e32b32b1fcaf4d4f8131d5427f4e5 /testing | |
parent | b22d13f8f6ba5f8525398ce91295e7ee9fc48b90 (diff) | |
download | aports-aa4f06014882448de48cffbfad7f4014b58b751e.zip |
testing/*: allow overriding go cache variables
Diffstat (limited to 'testing')
197 files changed, 590 insertions, 590 deletions
diff --git a/testing/6cord/APKBUILD b/testing/6cord/APKBUILD index 1255e917411..6298ebce2b7 100644 --- a/testing/6cord/APKBUILD +++ b/testing/6cord/APKBUILD @@ -13,9 +13,9 @@ source="https://gitlab.com/diamondburned/6cord/-/archive/stable-$pkgver/6cord-st options="!check" # no testsuite builddir="$srcdir/6cord-stable-$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"}" build() { go build -o bin/6cord diff --git a/testing/acmetool/APKBUILD b/testing/acmetool/APKBUILD index 9f98fe65284..86d45a6931b 100644 --- a/testing/acmetool/APKBUILD +++ b/testing/acmetool/APKBUILD @@ -18,8 +18,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/hlandau/acmetool/archive/v$p export GOPATH="$srcdir/go" export GOCACHE="$srcdir/go-build" -export GOTMPDIR="$srcdir" -export GOMODCACHE="$srcdir/go" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export GOFLAGS="$GOFLAGS -modcacherw" diff --git a/testing/air/APKBUILD b/testing/air/APKBUILD index 660fa6c2069..7535728fa6d 100644 --- a/testing/air/APKBUILD +++ b/testing/air/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/cosmtrek/air/archive/refs/tags/v$pkgver.tar.gz" options="!check" # failed to build, error: open /dev/ptmx: no such device -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"}" build() { mkdir -v build diff --git a/testing/alpine-lift/APKBUILD b/testing/alpine-lift/APKBUILD index b35048bf61d..2396c427a24 100644 --- a/testing/alpine-lift/APKBUILD +++ b/testing/alpine-lift/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/bjwschaap/alpine-lift/archiv makefile.patch " -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"}" build() { export CGO_CPPFLAGS="$CPPFLAGS" diff --git a/testing/antibody/APKBUILD b/testing/antibody/APKBUILD index 5884e8bc542..42096ec2739 100644 --- a/testing/antibody/APKBUILD +++ b/testing/antibody/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/getantibody/antibody/archive options="!check" # uses removed github api export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build -o antibody -ldflags "-X main.version=$pkgver" -trimpath diff --git a/testing/apko/APKBUILD b/testing/apko/APKBUILD index dea4d47f5ae..2f79de459fc 100644 --- a/testing/apko/APKBUILD +++ b/testing/apko/APKBUILD @@ -16,9 +16,9 @@ subpackages=" " source="https://github.com/chainguard-dev/apko/archive/v$pkgver/apko-$pkgver.tar.gz" -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"}" build() { mkdir build diff --git a/testing/aports-glmr/APKBUILD b/testing/aports-glmr/APKBUILD index e88b7e3e60b..250527182ff 100644 --- a/testing/aports-glmr/APKBUILD +++ b/testing/aports-glmr/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="https://gitlab.alpinelinux.org/ncopa/aports-glmr/-/archive/$pkgver/aports-glmr-$pkgver.tar.gz" options="!check" # no checks -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"}" build() { make diff --git a/testing/apptainer/APKBUILD b/testing/apptainer/APKBUILD index 204ac84147b..7905c7d8015 100644 --- a/testing/apptainer/APKBUILD +++ b/testing/apptainer/APKBUILD @@ -23,9 +23,9 @@ source="https://github.com/apptainer/apptainer/releases/download/v$pkgver/apptai export GOPATH="$srcdir" export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" prepare() { default_prepare diff --git a/testing/bettercap/APKBUILD b/testing/bettercap/APKBUILD index 1ffd66d807b..1dd0f8e05ca 100644 --- a/testing/bettercap/APKBUILD +++ b/testing/bettercap/APKBUILD @@ -16,9 +16,9 @@ export GOFLAGS="$GOFLAGS -modcacherw -trimpath" # <sys/types.h> for these types, this is the easiest patch export CGO_CFLAGS="$CFLAGS -Du_int32_t=uint32_t -Du_int16_t=uint16_t -Du_int8_t=uint8_t" -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"}" build() { go build -o "$builddir/bettercap" . diff --git a/testing/blackbox_exporter/APKBUILD b/testing/blackbox_exporter/APKBUILD index 6842ff6df33..edd6b8b061f 100644 --- a/testing/blackbox_exporter/APKBUILD +++ b/testing/blackbox_exporter/APKBUILD @@ -20,9 +20,9 @@ subpackages="$pkgname-openrc" # 0.18.0-r0: # - CVE-2020-16248 -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"}" build() { go build diff --git a/testing/blocky/APKBUILD b/testing/blocky/APKBUILD index e331c9fa498..0c7d677a965 100644 --- a/testing/blocky/APKBUILD +++ b/testing/blocky/APKBUILD @@ -11,9 +11,9 @@ options="net" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/0xERR0R/blocky/archive/v$pkgver.tar.gz" -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"}" build() { make VERSION=$pkgver build diff --git a/testing/bombadillo/APKBUILD b/testing/bombadillo/APKBUILD index 441e4c59573..3494409aa8e 100644 --- a/testing/bombadillo/APKBUILD +++ b/testing/bombadillo/APKBUILD @@ -14,9 +14,9 @@ builddir="$srcdir/bombadillo" export GOPATH="$srcdir" export GOFLAGS="$GOFLAGS -trimpath -modcacherw" -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"}" build() { make build diff --git a/testing/booster/APKBUILD b/testing/booster/APKBUILD index 36195d7448d..2a393aea54f 100644 --- a/testing/booster/APKBUILD +++ b/testing/booster/APKBUILD @@ -21,9 +21,9 @@ provides="initramfs-generator" provider_priority=1 # lowest, **must** be lower than main/mkinitfs export GOFLAGS="$GOFLAGS -trimpath -modcacherw" -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"}" build() { cd "$builddir"/generator diff --git a/testing/boringproxy/APKBUILD b/testing/boringproxy/APKBUILD index 905be63f7de..f9c5b1c3771 100644 --- a/testing/boringproxy/APKBUILD +++ b/testing/boringproxy/APKBUILD @@ -12,9 +12,9 @@ makedepends="go inkscape libcap" source="$pkgname-$pkgver.tar.gz::https://github.com/boringproxy/boringproxy/archive/refs/tags/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly" -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"}" build() { # from ./scripts/generate_logo.sh diff --git a/testing/btcd/APKBUILD b/testing/btcd/APKBUILD index 120c16af49c..da6ab67fb62 100644 --- a/testing/btcd/APKBUILD +++ b/testing/btcd/APKBUILD @@ -13,9 +13,9 @@ source="https://github.com/btcsuite/btcd/archive/v$_pkgver/btcd-$_pkgver.tar.gz " builddir="$srcdir/$pkgname-$_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"}" build() { mkdir bin diff --git a/testing/buildkit/APKBUILD b/testing/buildkit/APKBUILD index 23c0f2f5bbc..d327be1b826 100644 --- a/testing/buildkit/APKBUILD +++ b/testing/buildkit/APKBUILD @@ -18,9 +18,9 @@ options="!check" # needs to mount various things as root export GOFLAGS="$GOFLAGS -modcacherw -trimpath" export CGO_ENABLED=0 -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"}" prepare() { default_prepare diff --git a/testing/certigo/APKBUILD b/testing/certigo/APKBUILD index 42c38ebb726..a60e48983f5 100644 --- a/testing/certigo/APKBUILD +++ b/testing/certigo/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/square/certigo/archive/v$pkgver/v$pkgver.tar.gz" options="chmod-clean" -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"}" build() { go build -trimpath diff --git a/testing/certstrap/APKBUILD b/testing/certstrap/APKBUILD index fcddea26199..90776fe2b79 100644 --- a/testing/certstrap/APKBUILD +++ b/testing/certstrap/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/square/certstrap/archive/v$pkgver/v$pkgver.tar.gz" options="chmod-clean" -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"}" build() { go build -trimpath diff --git a/testing/cfssl/APKBUILD b/testing/cfssl/APKBUILD index 4f3264e569d..a8bf0215053 100644 --- a/testing/cfssl/APKBUILD +++ b/testing/cfssl/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" source="https://github.com/cloudflare/cfssl/archive/v$pkgver/cfssl-$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -modcacherw -mod=vendor" -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"}" build() { go build \ diff --git a/testing/chathistorysync/APKBUILD b/testing/chathistorysync/APKBUILD index 8878be821ea..03b9cd71d77 100644 --- a/testing/chathistorysync/APKBUILD +++ b/testing/chathistorysync/APKBUILD @@ -13,9 +13,9 @@ source=" subpackages="$pkgname-doc" builddir="$srcdir/$pkgname-v$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"}" build() { make diff --git a/testing/clash/APKBUILD b/testing/clash/APKBUILD index 8e399d6f3d2..e50bde333e9 100644 --- a/testing/clash/APKBUILD +++ b/testing/clash/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Dreamacro/clash/archive/refs clash.initd" options="!check" # The upstream does not provide a proper way to test the pakcage -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" build() { diff --git a/testing/cliphist/APKBUILD b/testing/cliphist/APKBUILD index 6f79ffd3c23..de1e3b38791 100644 --- a/testing/cliphist/APKBUILD +++ b/testing/cliphist/APKBUILD @@ -13,9 +13,9 @@ makedepends="go" subpackages="$pkgname-fzf::noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/sentriz/cliphist/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build diff --git a/testing/clipman/APKBUILD b/testing/clipman/APKBUILD index a61ecd99953..bc86bd826bd 100644 --- a/testing/clipman/APKBUILD +++ b/testing/clipman/APKBUILD @@ -13,9 +13,9 @@ options="!check" # no tests subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/yory8/clipman/archive/v$pkgver.tar.gz" -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"}" build() { go build -o $pkgname diff --git a/testing/cloudflared/APKBUILD b/testing/cloudflared/APKBUILD index ad3fc700ba0..e74fec4d22e 100644 --- a/testing/cloudflared/APKBUILD +++ b/testing/cloudflared/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/cloudflare/cloudflared/archi " options="!check" # require privileged icmp sockets -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 -trimpath" build() { diff --git a/testing/cloudfoundry-cli/APKBUILD b/testing/cloudfoundry-cli/APKBUILD index e4c0fab3460..28a0bafb279 100644 --- a/testing/cloudfoundry-cli/APKBUILD +++ b/testing/cloudfoundry-cli/APKBUILD @@ -13,9 +13,9 @@ options="!check" # some tests fail source="$pkgname-$pkgver.tar.gz::https://github.com/cloudfoundry/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 -mod=mod -modcacherw" diff --git a/testing/cointop/APKBUILD b/testing/cointop/APKBUILD index 59669d0815d..aeaea8e5b7c 100644 --- a/testing/cointop/APKBUILD +++ b/testing/cointop/APKBUILD @@ -10,9 +10,9 @@ license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/cointop-sh/cointop/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -o bin/$pkgname -ldflags "-X github.com/cointop-sh/cointop/cointop.version=v$pkgver" diff --git a/testing/comics-downloader/APKBUILD b/testing/comics-downloader/APKBUILD index 0bde4161d55..c6797a5e1f7 100644 --- a/testing/comics-downloader/APKBUILD +++ b/testing/comics-downloader/APKBUILD @@ -13,9 +13,9 @@ makedepends="go mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev" subpackages="$pkgname-gui:gui" source="$pkgver-$pkgname.tar.gz::https://github.com/Girbons/comics-downloader/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -o build/comics-downloader ./cmd/downloader diff --git a/testing/conntracct/APKBUILD b/testing/conntracct/APKBUILD index 6741f608a0e..b996c35cc61 100644 --- a/testing/conntracct/APKBUILD +++ b/testing/conntracct/APKBUILD @@ -18,9 +18,9 @@ source=" dont-run-setcap.patch " -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"}" build() { mage build diff --git a/testing/consul-replicate/APKBUILD b/testing/consul-replicate/APKBUILD index a48019e932b..bb49cbe7677 100644 --- a/testing/consul-replicate/APKBUILD +++ b/testing/consul-replicate/APKBUILD @@ -10,9 +10,9 @@ license="MPL-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/consul-replicate/archive/v$pkgver.tar.gz" -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 GO111MODULE=off build() { diff --git a/testing/corerad/APKBUILD b/testing/corerad/APKBUILD index e3f7a6c10ba..f9c7fc9d2f8 100644 --- a/testing/corerad/APKBUILD +++ b/testing/corerad/APKBUILD @@ -19,9 +19,9 @@ source=" # access denied for ipv6 autoconfiguration [ "$CARCH" = "s390x" ] && options="$options !check" -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"}" build() { make VERSION="$pkgver" diff --git a/testing/cri-o/APKBUILD b/testing/cri-o/APKBUILD index 3ba78bdcfa6..c5deb925c12 100644 --- a/testing/cri-o/APKBUILD +++ b/testing/cri-o/APKBUILD @@ -60,9 +60,9 @@ source="https://github.com/cri-o/cri-o/archive/v$pkgver/cri-o-$pkgver.tar.gz # 1.24.1-r0: # - CVE-2022-1708 -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 GOBIN="$GOPATH/bin" build() { diff --git a/testing/cri-tools/APKBUILD b/testing/cri-tools/APKBUILD index 41c6e0874a5..3f3ad883f18 100644 --- a/testing/cri-tools/APKBUILD +++ b/testing/cri-tools/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" options="!check" # no check available source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes-sigs/cri-tools/archive/v$pkgver.tar.gz" -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"}" build() { make all diff --git a/testing/crowdsec/APKBUILD b/testing/crowdsec/APKBUILD index c60ad40acdd..2e9670c40dd 100644 --- a/testing/crowdsec/APKBUILD +++ b/testing/crowdsec/APKBUILD @@ -13,9 +13,9 @@ makedepends="go jq bash gettext binutils-gold coreutils" options="!check" # no test suite identified source="$pkgname-$pkgver.tar.gz::https://github.com/crowdsecurity/crowdsec/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { make BUILD_VERSION=v$pkgver build diff --git a/testing/cs-firewall-bouncer/APKBUILD b/testing/cs-firewall-bouncer/APKBUILD index 6a181c2348c..4369e4d104b 100644 --- a/testing/cs-firewall-bouncer/APKBUILD +++ b/testing/cs-firewall-bouncer/APKBUILD @@ -16,9 +16,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/crowdsecurity/cs-firewall-bo " export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { make BUILD_VERSION=$pkgver BUILD_TAG=master diff --git a/testing/csvq/APKBUILD b/testing/csvq/APKBUILD index ec582491dee..b95641b3779 100644 --- a/testing/csvq/APKBUILD +++ b/testing/csvq/APKBUILD @@ -11,9 +11,9 @@ options="!check" # no test suite makedepends="go" source="https://github.com/mithrandie/csvq/archive/v$pkgver/csvq-v$pkgver.tar.gz" -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"}" build() { make build diff --git a/testing/ctop/APKBUILD b/testing/ctop/APKBUILD index 536087d7442..af5c630e154 100644 --- a/testing/ctop/APKBUILD +++ b/testing/ctop/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" options="!check" # no test suite source="$pkgname-$pkgver.tar.gz::https://github.com/bcicen/ctop/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { make build diff --git a/testing/delve/APKBUILD b/testing/delve/APKBUILD index fad8d818ed7..da1fe11b142 100644 --- a/testing/delve/APKBUILD +++ b/testing/delve/APKBUILD @@ -12,9 +12,9 @@ options="net chmod-clean" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/go-delve/delve/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { diff --git a/testing/desync/APKBUILD b/testing/desync/APKBUILD index e1ba0bea399..a5aeda1302c 100644 --- a/testing/desync/APKBUILD +++ b/testing/desync/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" depends="fuse" source="$pkgname-$pkgver.tar.gz::https://github.com/folbricht/desync/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" diff --git a/testing/didder/APKBUILD b/testing/didder/APKBUILD index 81c3ff5578d..1161819b853 100644 --- a/testing/didder/APKBUILD +++ b/testing/didder/APKBUILD @@ -14,9 +14,9 @@ options="!check" # no test files source="$pkgname-$pkgver.tar.gz::https://github.com/makeworld-the-better-one/didder/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { go build \ diff --git a/testing/distrobuilder/APKBUILD b/testing/distrobuilder/APKBUILD index e6d65148a72..10a42ea8484 100644 --- a/testing/distrobuilder/APKBUILD +++ b/testing/distrobuilder/APKBUILD @@ -14,9 +14,9 @@ checkdepends="squashfs-tools" source="https://github.com/lxc/distrobuilder/archive/refs/tags/distrobuilder-$pkgver.tar.gz" builddir="$srcdir/distrobuilder-distrobuilder-$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" build() { diff --git a/testing/dive/APKBUILD b/testing/dive/APKBUILD index 6572d68e95c..7786658a600 100644 --- a/testing/dive/APKBUILD +++ b/testing/dive/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" source="https://github.com/wagoodman/dive/archive/v$pkgver/dive-$pkgver.tar.gz" options="chmod-clean !check" # No test suite -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"}" build() { go build \ diff --git a/testing/docker-volume-local-persist/APKBUILD b/testing/docker-volume-local-persist/APKBUILD index 37e581d5a77..2e14dbe0507 100644 --- a/testing/docker-volume-local-persist/APKBUILD +++ b/testing/docker-volume-local-persist/APKBUILD @@ -17,9 +17,9 @@ source=" builddir="$srcdir/local-persist-$pkgver" export GOPATH="$startdir" -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"}" prepare() { default_prepare diff --git a/testing/dockerize/APKBUILD b/testing/dockerize/APKBUILD index a869c69e0fc..2f40ba9d1fe 100644 --- a/testing/dockerize/APKBUILD +++ b/testing/dockerize/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/jwilder/dockerize/archive/v$ go.sum " -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"}" prepare() { default_prepare diff --git a/testing/doggo/APKBUILD b/testing/doggo/APKBUILD index 8876df5b95d..6df63f9b732 100644 --- a/testing/doggo/APKBUILD +++ b/testing/doggo/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/mr-karan/doggo/archive/v$pkgver.tar.gz" options="!check" #no test suite -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"}" build() { make CLI_BIN="./doggo" VERSION=$pkgver build-cli diff --git a/testing/dolt/APKBUILD b/testing/dolt/APKBUILD index 55be8e3865d..f09ab9d9f64 100644 --- a/testing/dolt/APKBUILD +++ b/testing/dolt/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/dolthub/dolt/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver/go" -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"}" build() { mkdir -p build diff --git a/testing/drone-cli/APKBUILD b/testing/drone-cli/APKBUILD index 7b9f146f2c3..7001138d340 100644 --- a/testing/drone-cli/APKBUILD +++ b/testing/drone-cli/APKBUILD @@ -10,9 +10,9 @@ arch="all" makedepends="go" source="drone-cli-$pkgver.tar.gz::https://github.com/harness/drone-cli/archive/v$pkgver.tar.gz" -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"}" build() { go build -ldflags "-X main.version=$pkgver" -o bin/drone ./drone diff --git a/testing/dsnet/APKBUILD b/testing/dsnet/APKBUILD index d89008804ae..340d99ce625 100644 --- a/testing/dsnet/APKBUILD +++ b/testing/dsnet/APKBUILD @@ -13,9 +13,9 @@ options="!check chmod-clean" # no tests available source="$pkgname-$pkgver.tar.gz::https://github.com/naggie/dsnet/archive/refs/tags/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { diff --git a/testing/dstask/APKBUILD b/testing/dstask/APKBUILD index 305b683b0ba..2aa5d328344 100644 --- a/testing/dstask/APKBUILD +++ b/testing/dstask/APKBUILD @@ -18,9 +18,9 @@ source="https://github.com/naggie/dstask/archive/v$pkgver/dstask-$pkgver.tar.gz " export GOFLAGS="$GOFLAGS -trimpath -modcacherw" -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"}" build() { diff --git a/testing/duf/APKBUILD b/testing/duf/APKBUILD index 799b92faef0..d8b698c0aa5 100644 --- a/testing/duf/APKBUILD +++ b/testing/duf/APKBUILD @@ -11,9 +11,9 @@ arch="all" makedepends="go" source="https://github.com/muesli/duf/archive/v$pkgver/duf-$pkgver.tar.gz" -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"}" build() { go build \ diff --git a/testing/efm-langserver/APKBUILD b/testing/efm-langserver/APKBUILD index 6610174bb83..5200d26416c 100644 --- a/testing/efm-langserver/APKBUILD +++ b/testing/efm-langserver/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" options="net chmod-clean" source="$pkgname-$pkgver.tar.gz::https://github.com/mattn/efm-langserver/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { diff --git a/testing/ejson/APKBUILD b/testing/ejson/APKBUILD index b3a0e8d08b6..62ed267cd6f 100644 --- a/testing/ejson/APKBUILD +++ b/testing/ejson/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Shopify/$pkgname/archive/v$p _gourl=github.com/Shopify/ejson builddir="$srcdir"/src/$_gourl -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"}" prepare() { mkdir -p "${builddir%/*}" diff --git a/testing/elvish/APKBUILD b/testing/elvish/APKBUILD index 39c151e3fc5..3f12788e5ec 100644 --- a/testing/elvish/APKBUILD +++ b/testing/elvish/APKBUILD @@ -10,9 +10,9 @@ arch="all" makedepends="go" source="https://github.com/elves/elvish/archive/v$pkgver/elvish-$pkgver.tar.gz" -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 -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 diff --git a/testing/envconsul/APKBUILD b/testing/envconsul/APKBUILD index 8a873789daf..a075dfa7d9f 100644 --- a/testing/envconsul/APKBUILD +++ b/testing/envconsul/APKBUILD @@ -10,9 +10,9 @@ arch="all" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/envconsul/archive/v$pkgver.tar.gz" -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"}" build() { export CGO_ENABLED="0" diff --git a/testing/ergo/APKBUILD b/testing/ergo/APKBUILD index e2b7152371c..8a943934e5b 100644 --- a/testing/ergo/APKBUILD +++ b/testing/ergo/APKBUILD @@ -19,9 +19,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ergochat/ergo/archive/refs/t ircd.yaml " -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"}" build() { make build diff --git a/testing/esbuild/APKBUILD b/testing/esbuild/APKBUILD index 02039412f77..dd4819e7591 100644 --- a/testing/esbuild/APKBUILD +++ b/testing/esbuild/APKBUILD @@ -13,9 +13,9 @@ source="https://github.com/evanw/esbuild/archive/v$pkgver/esbuild-$pkgver.tar.gz export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export GOPATH="$srcdir" -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"}" build() { go build \ diff --git a/testing/etcd/APKBUILD b/testing/etcd/APKBUILD index c4754c752cb..e3b39354d7b 100644 --- a/testing/etcd/APKBUILD +++ b/testing/etcd/APKBUILD @@ -22,9 +22,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/etcd/archive/v$pkgver " export CGO_ENABLED=0 -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 -mod=mod" prepare() { 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() { diff --git a/testing/exoscale/APKBUILD b/testing/exoscale/APKBUILD index 61172954c59..92e1f7963d8 100644 --- a/testing/exoscale/APKBUILD +++ b/testing/exoscale/APKBUILD @@ -14,9 +14,9 @@ source="https://github.com/exoscale/cli/archive/refs/tags/v$pkgver/exoscale-$pkg " 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"}" prepare() { default_prepare diff --git a/testing/ffuf/APKBUILD b/testing/ffuf/APKBUILD index c1a50439e7f..c41e92567bb 100644 --- a/testing/ffuf/APKBUILD +++ b/testing/ffuf/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" subpackages="$pkgname-doc" source="https://github.com/ffuf/ffuf/archive/refs/tags/v$pkgver/ffuf-$pkgver.tar.gz" -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"}" build() { go build -o build/ffuf diff --git a/testing/filebeat/APKBUILD b/testing/filebeat/APKBUILD index 57ce6b05a81..0201e04ca8c 100644 --- a/testing/filebeat/APKBUILD +++ b/testing/filebeat/APKBUILD @@ -20,9 +20,9 @@ source="beats-$pkgver.tar.gz::https://github.com/elastic/beats/archive/v$pkgver. " builddir="$srcdir/src/github.com/elastic/beats/$pkgname" -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"}" prepare() { mkdir -p "$srcdir/src/github.com/elastic/" diff --git a/testing/firectl/APKBUILD b/testing/firectl/APKBUILD index effc8b4cba3..3162e7e0459 100644 --- a/testing/firectl/APKBUILD +++ b/testing/firectl/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" source="https://github.com/firecracker-microvm/firectl/archive/v$pkgver/firectl-$pkgver.tar.gz" options="!check" # the tests require a kernel image to be present -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"}" build() { make diff --git a/testing/flannel/APKBUILD b/testing/flannel/APKBUILD index e6c50ee6512..c94a147f65b 100644 --- a/testing/flannel/APKBUILD +++ b/testing/flannel/APKBUILD @@ -17,9 +17,9 @@ $_pkgname.initd $_pkgname.confd" builddir="$srcdir/$pkgname-$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"}" build() { mkdir -p out diff --git a/testing/fq/APKBUILD b/testing/fq/APKBUILD index f1fa072f327..9df2f63b576 100644 --- a/testing/fq/APKBUILD +++ b/testing/fq/APKBUILD @@ -12,9 +12,9 @@ checkdepends="expect" source="https://github.com/wader/fq/archive/v$pkgver/fq-$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { make fq diff --git a/testing/gb/APKBUILD b/testing/gb/APKBUILD index a58a6cda065..445fe195caa 100644 --- a/testing/gb/APKBUILD +++ b/testing/gb/APKBUILD @@ -16,9 +16,9 @@ source="gb-$pkgver.tar.gz::https://github.com/constabulary/gb/archive/v$pkgver.t " builddir="$srcdir/src/github.com/constabulary/$pkgname" -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"}" prepare() { mkdir -p ${builddir%/*} diff --git a/testing/geodns/APKBUILD b/testing/geodns/APKBUILD index c1b8d505e2d..f4eb73a7ec4 100644 --- a/testing/geodns/APKBUILD +++ b/testing/geodns/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/abh/geodns/archive/v$pkgver. " export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build -v diff --git a/testing/git-bug/APKBUILD b/testing/git-bug/APKBUILD index bbcea0b6c40..a6a5e55fb5a 100644 --- a/testing/git-bug/APKBUILD +++ b/testing/git-bug/APKBUILD @@ -18,9 +18,9 @@ export GIT_LAST_TAG=v$pkgver export GIT_EXACT_TAG=v$pkgver export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { make diff --git a/testing/glow/APKBUILD b/testing/glow/APKBUILD index f0d76b84b97..2a3645078e7 100644 --- a/testing/glow/APKBUILD +++ b/testing/glow/APKBUILD @@ -10,9 +10,9 @@ license="MIT" makedepends="go" source="https://github.com/charmbracelet/glow/archive/v$pkgver/glow-$pkgver.tar.gz" -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"}" build() { go build -v -o bin/$pkgname -ldflags "-X main.Version=$pkgver" diff --git a/testing/go-mtpfs/APKBUILD b/testing/go-mtpfs/APKBUILD index 800476bc71d..9e6684997e9 100644 --- a/testing/go-mtpfs/APKBUILD +++ b/testing/go-mtpfs/APKBUILD @@ -10,9 +10,9 @@ makedepends="go libusb-dev" options="net !check" # tests require MTP device to be connected source="$pkgname-$pkgver.tar.gz::https://github.com/hanwen/go-mtpfs/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build diff --git a/testing/go-passbolt-cli/APKBUILD b/testing/go-passbolt-cli/APKBUILD index 709be2b257b..1f240822278 100644 --- a/testing/go-passbolt-cli/APKBUILD +++ b/testing/go-passbolt-cli/APKBUILD @@ -14,9 +14,9 @@ source=" " export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build -trimpath -o go-passbolt-cli diff --git a/testing/go-pingu/APKBUILD b/testing/go-pingu/APKBUILD index e08b6b4b720..72819b6fa2a 100644 --- a/testing/go-pingu/APKBUILD +++ b/testing/go-pingu/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/sheepla/pingu/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pkgbin-$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"}" build() { go build -o bin/$_pkgbin \ diff --git a/testing/go-s/APKBUILD b/testing/go-s/APKBUILD index 41d403086e2..0fe5e434640 100644 --- a/testing/go-s/APKBUILD +++ b/testing/go-s/APKBUILD @@ -15,9 +15,9 @@ subpackages=" source="$pkgname-$pkgver.tar.gz::https://github.com/zquestz/s/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/s-$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"}" build() { go build -v -o s . diff --git a/testing/gobuster/APKBUILD b/testing/gobuster/APKBUILD index c9d19b57e67..c9ce5c7c027 100644 --- a/testing/gobuster/APKBUILD +++ b/testing/gobuster/APKBUILD @@ -9,9 +9,9 @@ license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/OJ/gobuster/archive/v$pkgver.tar.gz" -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"}" build() { go build -trimpath \ diff --git a/testing/golangci-lint/APKBUILD b/testing/golangci-lint/APKBUILD index eef83aa5366..7296a176581 100644 --- a/testing/golangci-lint/APKBUILD +++ b/testing/golangci-lint/APKBUILD @@ -14,9 +14,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/golangci/golangci-lint/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { local goldflags=" diff --git a/testing/gomaildrop/APKBUILD b/testing/gomaildrop/APKBUILD index f54e12c3b48..7364a7bddf7 100644 --- a/testing/gomaildrop/APKBUILD +++ b/testing/gomaildrop/APKBUILD @@ -12,9 +12,9 @@ source="https://gitlab.alpinelinux.org/kdaudt/gomaildrop/-/archive/v$pkgver/goma builddir="$srcdir/$pkgname-v$pkgver" export GOFLAGS="$GOFLAGS -modcacherw -mod=readonly" -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"}" build() { ./configure --prefix /usr diff --git a/testing/goreman/APKBUILD b/testing/goreman/APKBUILD index 5b8f114500a..e77e52884b5 100644 --- a/testing/goreman/APKBUILD +++ b/testing/goreman/APKBUILD @@ -12,9 +12,9 @@ source="https://github.com/mattn/goreman/archive/v$pkgver/goreman-$pkgver.tar.gz options="!check" # No test suite export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" build() { go build -o bin/goreman . diff --git a/testing/gortr/APKBUILD b/testing/gortr/APKBUILD index 099aa873c94..56b509a891a 100644 --- a/testing/gortr/APKBUILD +++ b/testing/gortr/APKBUILD @@ -18,9 +18,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/cloudflare/gortr/archive/v$p $pkgname.confd " -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"}" prepare() { default_prepare diff --git a/testing/gosu/APKBUILD b/testing/gosu/APKBUILD index 3f793b4d565..2a8c4113d9a 100644 --- a/testing/gosu/APKBUILD +++ b/testing/gosu/APKBUILD @@ -21,9 +21,9 @@ source="https://github.com/tianon/gosu/archive/$_gosu_ver/$_gosu_src.tar.gz https://github.com/opencontainers/runc/archive/v$_runc_ver/$_runc_src.tar.gz" options="!check" # require docker to run tests -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"}" builddir="$srcdir"/$_gosu_repo prepare() { diff --git a/testing/gron/APKBUILD b/testing/gron/APKBUILD index 5f53478c413..555e631535b 100644 --- a/testing/gron/APKBUILD +++ b/testing/gron/APKBUILD @@ -10,9 +10,9 @@ license="MIT" makedepends="go>=1.11" source="gron-$pkgver.tar.gz::https://github.com/tomnomnom/gron/archive/v$pkgver.tar.gz" -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" diff --git a/testing/grype/APKBUILD b/testing/grype/APKBUILD index e79afc6de48..6fce12bede6 100644 --- a/testing/grype/APKBUILD +++ b/testing/grype/APKBUILD @@ -20,9 +20,9 @@ options="!check" # tests need docker export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 -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"}" build() { go build -ldflags " diff --git a/testing/gum/APKBUILD b/testing/gum/APKBUILD index 144a19ba341..a63c0c32cb9 100644 --- a/testing/gum/APKBUILD +++ b/testing/gum/APKBUILD @@ -17,9 +17,9 @@ subpackages=" makedepends="go" source="https://github.com/charmbracelet/gum/archive/v$pkgver/gum-v$pkgver.tar.gz" -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"}" build() { go build . diff --git a/testing/gx-go/APKBUILD b/testing/gx-go/APKBUILD index 5eb64bf2085..f56f61ba875 100644 --- a/testing/gx-go/APKBUILD +++ b/testing/gx-go/APKBUILD @@ -15,9 +15,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/whyrusleeping/gx-go/archive/ gomod.patch " -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"}" prepare() { default_prepare diff --git a/testing/gx/APKBUILD b/testing/gx/APKBUILD index 1e9ef04e34b..206c90ecee8 100644 --- a/testing/gx/APKBUILD +++ b/testing/gx/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/whyrusleeping/gx/archive/v$pkgver.tar.gz" -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"}" prepare() { default_prepare diff --git a/testing/headscale/APKBUILD b/testing/headscale/APKBUILD index b9ed4e4cf46..bbe28f36962 100644 --- a/testing/headscale/APKBUILD +++ b/testing/headscale/APKBUILD @@ -16,9 +16,9 @@ source="https://github.com/juanfont/headscale/archive/v$pkgver/headscale-$pkgver headscale.initd " -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"}" prepare() { default_prepare diff --git a/testing/helm/APKBUILD b/testing/helm/APKBUILD index 70b22714397..c8ead7be30b 100644 --- a/testing/helm/APKBUILD +++ b/testing/helm/APKBUILD @@ -23,9 +23,9 @@ case "$CARCH" in x86|armv7) options="$options !check" ;; esac -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" export CGO_ENABLED=0 diff --git a/testing/helmfile/APKBUILD b/testing/helmfile/APKBUILD index 111829849ef..088628e57cc 100644 --- a/testing/helmfile/APKBUILD +++ b/testing/helmfile/APKBUILD @@ -17,9 +17,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/helmfile/helmfile/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -o helmfile -ldflags "-X github.com/helmfile/helmfile/pkg/app/version.Version=v$pkgver" diff --git a/testing/heplify-server/APKBUILD b/testing/heplify-server/APKBUILD index a76890a47a0..5513aac0510 100644 --- a/testing/heplify-server/APKBUILD +++ b/testing/heplify-server/APKBUILD @@ -25,9 +25,9 @@ case $CARCH in esac -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" diff --git a/testing/heplify/APKBUILD b/testing/heplify/APKBUILD index 3f7f566c002..7410c01d5e4 100644 --- a/testing/heplify/APKBUILD +++ b/testing/heplify/APKBUILD @@ -15,9 +15,9 @@ source="https://github.com/sipcapture/heplify/archive/$pkgver/heplify-$pkgver.ta # net required to download Go dependencies options="net" -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"}" build() { make all diff --git a/testing/hilbish/APKBUILD b/testing/hilbish/APKBUILD index 4b16824b1f3..2eb140db24d 100644 --- a/testing/hilbish/APKBUILD +++ b/testing/hilbish/APKBUILD @@ -20,9 +20,9 @@ source=" " builddir="$srcdir/Hilbish-$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"}" build() { go build -v -o hilbish -ldflags "-X main.Version=$pkgver" diff --git a/testing/hledger-timeclock/APKBUILD b/testing/hledger-timeclock/APKBUILD index 5ef929ca940..09c8e14d2d1 100644 --- a/testing/hledger-timeclock/APKBUILD +++ b/testing/hledger-timeclock/APKBUILD @@ -15,9 +15,9 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~dhruvin/hledger-timeclock/ar builddir="$srcdir/$pkgname-v$pkgver" options="!check chmod-clean" # no tests -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"}" build() { make GOFLAGS="$GOFLAGS" all diff --git a/testing/homer-app/APKBUILD b/testing/homer-app/APKBUILD index 67a5ab6ca98..fa66329e138 100644 --- a/testing/homer-app/APKBUILD +++ b/testing/homer-app/APKBUILD @@ -16,9 +16,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-app/archive change-default-locations.patch " -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"}" build() { make modules diff --git a/testing/hub/APKBUILD b/testing/hub/APKBUILD index df46037e632..30bbdb39ad4 100644 --- a/testing/hub/APKBUILD +++ b/testing/hub/APKBUILD @@ -21,9 +21,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver. builddir="$srcdir/src/github.com/github/hub" -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"}" prepare() { mkdir -p "${builddir%/*}" diff --git a/testing/ijq/APKBUILD b/testing/ijq/APKBUILD index fe3abaf8a99..9af6b580572 100644 --- a/testing/ijq/APKBUILD +++ b/testing/ijq/APKBUILD @@ -17,9 +17,9 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~gpanders/ijq/archive/v$pkgve builddir="$srcdir/$pkgname-v$pkgver" export GOFLAGS="$GOFLAGS -buildvcs=false" -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"}" build() { make diff --git a/testing/imgdiff/APKBUILD b/testing/imgdiff/APKBUILD index 55ce5b71106..ede99beea62 100644 --- a/testing/imgdiff/APKBUILD +++ b/testing/imgdiff/APKBUILD @@ -12,9 +12,9 @@ subpackages="$pkgname-doc" makedepends="go" source="https://github.com/n7olkachev/imgdiff/archive/v$pkgver/imgdiff-v$pkgver.tar.gz" -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"}" build() { go build -o imgdiff cmd/main.go diff --git a/testing/jfrog-cli/APKBUILD b/testing/jfrog-cli/APKBUILD index 62b132481db..a4dd2987bc6 100644 --- a/testing/jfrog-cli/APKBUILD +++ b/testing/jfrog-cli/APKBUILD @@ -12,9 +12,9 @@ replaces="jfrog-cli-go" provides="jfrog-cli-go=$pkgver-r$pkgrel" source="$pkgname-$pkgver.tar.gz::https://github.com/jfrog/jfrog-cli/archive/v$pkgver.tar.gz" -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"}" build() { go build -o bin/jfrog main.go diff --git a/testing/judo/APKBUILD b/testing/judo/APKBUILD index e7babd839d0..c805e5bc65f 100644 --- a/testing/judo/APKBUILD +++ b/testing/judo/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/rollcat/judo/archive/refs/tags/$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { go build -v . diff --git a/testing/k0sctl/APKBUILD b/testing/k0sctl/APKBUILD index 41d6e7ab0e3..41917c6570c 100644 --- a/testing/k0sctl/APKBUILD +++ b/testing/k0sctl/APKBUILD @@ -16,9 +16,9 @@ source="https://github.com/k0sproject/k0sctl/archive/refs/tags/v$pkgver/k0sctl-$ builddir="$srcdir/k0sctl-$pkgver" options="chmod-clean" -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"}" build() { make TAG_NAME="v$pkgver" GIT_COMMIT="" diff --git a/testing/kapow/APKBUILD b/testing/kapow/APKBUILD index 829bb7c7a3f..ebe2d1371d3 100644 --- a/testing/kapow/APKBUILD +++ b/testing/kapow/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="https://github.com/BBVA/kapow/archive/v$pkgver/kapow-$pkgver.tar.gz" builddir="$srcdir/kapow-$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"}" build() { make build diff --git a/testing/keybase-client/APKBUILD b/testing/keybase-client/APKBUILD index c4f62e7ab47..14c06423237 100644 --- a/testing/keybase-client/APKBUILD +++ b/testing/keybase-client/APKBUILD @@ -13,9 +13,9 @@ options="!check" # need access to localhost:3000, which doesn't work with our in source="$pkgname-$pkgver.tar.gz::https://github.com/keybase/client/archive/v$pkgver.tar.gz" builddir="$srcdir/client-$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"}" build() { cd "$srcdir" diff --git a/testing/khinsider/APKBUILD b/testing/khinsider/APKBUILD index de4b6957c10..b339aea0c9e 100644 --- a/testing/khinsider/APKBUILD +++ b/testing/khinsider/APKBUILD @@ -12,9 +12,9 @@ source="https://github.com/marcus-crane/khinsider/archive/v$pkgver/khinsider-v$p builddir="$srcdir/khinsider-$pkgver" options="!check net" # No upstream tests -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"}" prepare() { default_prepare diff --git a/testing/kind/APKBUILD b/testing/kind/APKBUILD index b332a3808b4..757f9bb2a1f 100644 --- a/testing/kind/APKBUILD +++ b/testing/kind/APKBUILD @@ -17,9 +17,9 @@ source="https://github.com/kubernetes-sigs/kind/archive/v$pkgver/kind-$pkgver.ta export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 -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"}" build() { go build diff --git a/testing/kine/APKBUILD b/testing/kine/APKBUILD index 23126c35b80..07f0d96d26c 100644 --- a/testing/kine/APKBUILD +++ b/testing/kine/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/k3s-io/kine/archive/v$pkgver provides="etcd-api" provider_priority=0 -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"}" build() { go build -v . diff --git a/testing/ko/APKBUILD b/testing/ko/APKBUILD index 31a39c136c0..5fa0f8eec59 100644 --- a/testing/ko/APKBUILD +++ b/testing/ko/APKBUILD @@ -14,9 +14,9 @@ subpackages=" " source="https://github.com/google/ko/archive/v$pkgver/ko-$pkgver.tar.gz" -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"}" build() { mkdir build diff --git a/testing/kompose/APKBUILD b/testing/kompose/APKBUILD index 10b05c1b456..019525c1bff 100644 --- a/testing/kompose/APKBUILD +++ b/testing/kompose/APKBUILD @@ -17,9 +17,9 @@ subpackages=" source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kompose/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/kubernetes/$pkgname" -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"}" prepare() { mkdir -p "$srcdir/src/github.com/kubernetes/" diff --git a/testing/kopia/APKBUILD b/testing/kopia/APKBUILD index 59b0852a748..291d9fcb4e5 100644 --- a/testing/kopia/APKBUILD +++ b/testing/kopia/APKBUILD @@ -14,9 +14,9 @@ source="https://github.com/kopia/kopia/archive/v$pkgver/kopia-$pkgver.tar.gz skip-docker-tests.patch " -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 -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 diff --git a/testing/kops/APKBUILD b/testing/kops/APKBUILD index f000d10d6cd..daddf02040c 100644 --- a/testing/kops/APKBUILD +++ b/testing/kops/APKBUILD @@ -13,9 +13,9 @@ options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw -mod=readonly" -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"}" prepare() { default_prepare diff --git a/testing/kubectl-krew/APKBUILD b/testing/kubectl-krew/APKBUILD index 6f6beccee34..ff70203be79 100644 --- a/testing/kubectl-krew/APKBUILD +++ b/testing/kubectl-krew/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes-sigs/krew/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/krew-$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"}" build() { GOLDFLAGS=" diff --git a/testing/kubefwd/APKBUILD b/testing/kubefwd/APKBUILD index f871cc3188c..9f5f4aff106 100644 --- a/testing/kubefwd/APKBUILD +++ b/testing/kubefwd/APKBUILD @@ -15,9 +15,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/txn2/kubefwd/archive/refs/tags/$pkgver.tar.gz" -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"}" build() { go build -v -tags netgo -o bin/$pkgname \ diff --git a/testing/kubepug/APKBUILD b/testing/kubepug/APKBUILD index 2f9cf8e855a..493e21ccb81 100644 --- a/testing/kubepug/APKBUILD +++ b/testing/kubepug/APKBUILD @@ -14,9 +14,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/rikatz/kubepug/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -ldflags "-X sigs.k8s.io/release-utils/version.gitVersion=v$pkgver" -o bin/$pkgname diff --git a/testing/kubergrunt/APKBUILD b/testing/kubergrunt/APKBUILD index a7834e7df31..94adf18ee58 100644 --- a/testing/kubergrunt/APKBUILD +++ b/testing/kubergrunt/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/gruntwork-io/kubergrunt/archive/refs/tags/v$pkgver.tar.gz" options="!check" # Tests require a running Kubernetes cluster -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"}" build() { go build -v -o bin/$pkgname -ldflags "-X main.VERSION=v$pkgver" ./cmd diff --git a/testing/kubernetes/APKBUILD b/testing/kubernetes/APKBUILD index 6d428c4a5d5..c8160f7018f 100644 --- a/testing/kubernetes/APKBUILD +++ b/testing/kubernetes/APKBUILD @@ -68,9 +68,9 @@ _agent="kubelet" _cli="kubeadm kubectl" _services="kube-apiserver kube-controller-manager kube-proxy kube-scheduler" -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"}" build() { make generated_files diff --git a/testing/kubeseal/APKBUILD b/testing/kubeseal/APKBUILD index cdc3b5ed0db..c5ee36ce96a 100644 --- a/testing/kubeseal/APKBUILD +++ b/testing/kubeseal/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/bitnami-labs/sealed-secrets/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/sealed-secrets-$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"}" build() { go build -v \ diff --git a/testing/kustomize/APKBUILD b/testing/kustomize/APKBUILD index e1c3942361f..f8fb147e816 100644 --- a/testing/kustomize/APKBUILD +++ b/testing/kustomize/APKBUILD @@ -18,9 +18,9 @@ builddir="$srcdir/kustomize-kustomize-v$pkgver/kustomize" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 -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"}" build() { local builddate="$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})" diff --git a/testing/lazydocker/APKBUILD b/testing/lazydocker/APKBUILD index c35470d7e3d..f3b2940cfc1 100644 --- a/testing/lazydocker/APKBUILD +++ b/testing/lazydocker/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" options="chmod-clean !check" # checks failing, reported upstream: https://github.com/jesseduffield/lazydocker/issues/236 source="$pkgname-$pkgver.tar.gz::https://github.com/jesseduffield/lazydocker/archive/v$pkgver.tar.gz" -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"}" build() { go build diff --git a/testing/litespeed/APKBUILD b/testing/litespeed/APKBUILD index 37bd9f2f698..c13d841f384 100644 --- a/testing/litespeed/APKBUILD +++ b/testing/litespeed/APKBUILD @@ -31,9 +31,9 @@ source="https://openlitespeed.org/packages/openlitespeed-$pkgver.src.tgz " builddir="$srcdir/openlitespeed-$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"}" prepare() { default_prepare diff --git a/testing/loki/APKBUILD b/testing/loki/APKBUILD index 1b19f22f69f..25dfb278ab6 100644 --- a/testing/loki/APKBUILD +++ b/testing/loki/APKBUILD @@ -21,9 +21,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/grafana/loki/archive/refs/ta go1.19.patch " -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 -trimpath" export CGO_ENABLED=0 diff --git a/testing/lxd-feature/APKBUILD b/testing/lxd-feature/APKBUILD index 2f06329a28b..873e8c18666 100644 --- a/testing/lxd-feature/APKBUILD +++ b/testing/lxd-feature/APKBUILD @@ -72,9 +72,9 @@ ldpath="/usr/lib/lxd" sonameprefix="$pkgname:" builddir="$srcdir/lxd-$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"}" build() { export GOPATH="$builddir/_dist" diff --git a/testing/mabel/APKBUILD b/testing/mabel/APKBUILD index 57c8b0df39d..d2be2dbdf04 100644 --- a/testing/mabel/APKBUILD +++ b/testing/mabel/APKBUILD @@ -12,9 +12,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/smmr-software/mabel/archive/ " export GOFLAGS="$GOFLAGS -modcacherw" -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"}" prepare() { default_prepare diff --git a/testing/maddy/APKBUILD b/testing/maddy/APKBUILD index 6b78914fa22..67e159d6951 100644 --- a/testing/maddy/APKBUILD +++ b/testing/maddy/APKBUILD @@ -18,9 +18,9 @@ source="https://github.com/foxcpp/maddy/archive/v$pkgver/maddy-$pkgver.tar.gz " export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw -tags=libsqlite3" -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"}" build() { ldflags="-extldflags \"$LDFLAGS\" diff --git a/testing/madonctl/APKBUILD b/testing/madonctl/APKBUILD index d161b3dca92..18db388e01f 100644 --- a/testing/madonctl/APKBUILD +++ b/testing/madonctl/APKBUILD @@ -13,9 +13,9 @@ source="madonctl-$_gitrev.tar.gz::https://github.com/McKael/madonctl/archive/$_g options="!check" # No tests builddir="$srcdir/$pkgname-$_gitrev" -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"}" build() { go build diff --git a/testing/mage/APKBUILD b/testing/mage/APKBUILD index a1c221cf974..9f593fbf42c 100644 --- a/testing/mage/APKBUILD +++ b/testing/mage/APKBUILD @@ -13,9 +13,9 @@ depends="go" options="chmod-clean" source="https://github.com/magefile/mage/archive/v$pkgver/mage-$pkgver.tar.gz" -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"}" build() { go build -o bin/mage -ldflags=" diff --git a/testing/mailsec-check/APKBUILD b/testing/mailsec-check/APKBUILD index 5b081add478..7ba02bfc226 100644 --- a/testing/mailsec-check/APKBUILD +++ b/testing/mailsec-check/APKBUILD @@ -16,9 +16,9 @@ builddir="$srcdir/$pkgname-$_commit" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 -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"}" build() { go build diff --git a/testing/mautrix-whatsapp/APKBUILD b/testing/mautrix-whatsapp/APKBUILD index 34a9362b149..18fc52cb282 100644 --- a/testing/mautrix-whatsapp/APKBUILD +++ b/testing/mautrix-whatsapp/APKBUILD @@ -17,9 +17,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mautrix/whatsapp/archive/v$p " builddir="$srcdir"/whatsapp-$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"}" build() { go build diff --git a/testing/metricbeat/APKBUILD b/testing/metricbeat/APKBUILD index afb8712b4ad..4bf45369ff4 100644 --- a/testing/metricbeat/APKBUILD +++ b/testing/metricbeat/APKBUILD @@ -19,9 +19,9 @@ source="beats-$pkgver.tar.gz::https://github.com/elastic/beats/archive/v$pkgver. builddir="$srcdir/beats-$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" diff --git a/testing/minikube/APKBUILD b/testing/minikube/APKBUILD index d3e9e2bddd8..4fed865f20e 100644 --- a/testing/minikube/APKBUILD +++ b/testing/minikube/APKBUILD @@ -21,9 +21,9 @@ source="https://github.com/kubernetes/minikube/archive/v$pkgver/minikube-$pkgver " export GOPATH="$srcdir" -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"}" prepare() { default_prepare diff --git a/testing/minio-client/APKBUILD b/testing/minio-client/APKBUILD index eaa518018cd..bd19e625c05 100644 --- a/testing/minio-client/APKBUILD +++ b/testing/minio-client/APKBUILD @@ -15,9 +15,9 @@ source="https://github.com/minio/mc/archive/RELEASE.$_pkgver/$pkgname-$_pkgver.t builddir="$srcdir/$_pkgname-RELEASE.$_pkgver" export CGO_ENABLED=0 -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" build() { diff --git a/testing/mkcert/APKBUILD b/testing/mkcert/APKBUILD index f8292858fc8..f10f6cc014f 100644 --- a/testing/mkcert/APKBUILD +++ b/testing/mkcert/APKBUILD @@ -10,9 +10,9 @@ makedepends="go nss-tools" options="chmod-clean" source="$pkgname-$pkgver.tar.gz::https://github.com/FiloSottile/mkcert/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go generate diff --git a/testing/mqtt2prometheus/APKBUILD b/testing/mqtt2prometheus/APKBUILD index cd0c4124a8e..24a75a65ece 100644 --- a/testing/mqtt2prometheus/APKBUILD +++ b/testing/mqtt2prometheus/APKBUILD @@ -10,9 +10,9 @@ license="MIT" makedepends="go" source="https://github.com/hikhvar/mqtt2prometheus/archive/v$pkgver/mqtt2prometheus-$pkgver.tar.gz" -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"}" build() { go build -o mqtt2prometheus ./cmd diff --git a/testing/mtg/APKBUILD b/testing/mtg/APKBUILD index 44438d2e00f..3133a0b470b 100644 --- a/testing/mtg/APKBUILD +++ b/testing/mtg/APKBUILD @@ -20,9 +20,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/9seconds/mtg/archive/refs/ta " export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build -v . diff --git a/testing/mynewt-newt/APKBUILD b/testing/mynewt-newt/APKBUILD index 56e5f06b0b6..5d52e12b9e6 100644 --- a/testing/mynewt-newt/APKBUILD +++ b/testing/mynewt-newt/APKBUILD @@ -15,9 +15,9 @@ subpackages="$pkgname-doc" source="mynewt-newt-$pkgver.tar.gz::https://github.com/apache/mynewt-newt/archive/mynewt_${_ver}.tar.gz" builddir="$srcdir/mynewt-newt-mynewt_${_ver}" -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"}" build() { ./build.sh diff --git a/testing/nats-server/APKBUILD b/testing/nats-server/APKBUILD index d555962ee3d..2fb644346f5 100644 --- a/testing/nats-server/APKBUILD +++ b/testing/nats-server/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" source="https://github.com/nats-io/nats-server/archive/v$pkgver/nats-server-$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build diff --git a/testing/navidrome/APKBUILD b/testing/navidrome/APKBUILD index 7711f902f47..c5f2fde0621 100644 --- a/testing/navidrome/APKBUILD +++ b/testing/navidrome/APKBUILD @@ -27,9 +27,9 @@ source=" options="$options chmod-clean" export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" # secfixes: # 0.47.5-r0: diff --git a/testing/nerdctl/APKBUILD b/testing/nerdctl/APKBUILD index 8c3b5a9f455..c481b730506 100644 --- a/testing/nerdctl/APKBUILD +++ b/testing/nerdctl/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/containerd/nerdctl/archive/r options="!check" # a lot fail export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" build() { go build -ldflags "-X github.com/containerd/nerdctl/pkg/version.Version=$pkgver" \ diff --git a/testing/netdata-go-plugins/APKBUILD b/testing/netdata-go-plugins/APKBUILD index 1129103b688..2970ce95368 100644 --- a/testing/netdata-go-plugins/APKBUILD +++ b/testing/netdata-go-plugins/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/netdata/go.d.plugin builddir="$srcdir/go.d.plugin-$pkgver" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build -v -o go.d.plugin ./cmd/godplugin diff --git a/testing/nsq/APKBUILD b/testing/nsq/APKBUILD index 7dc30589ed9..5a4f153c5fc 100644 --- a/testing/nsq/APKBUILD +++ b/testing/nsq/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/nsqio/nsq/archive/v$pkgver.t " options="net" -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"}" prepare() { default_prepare diff --git a/testing/ntfy/APKBUILD b/testing/ntfy/APKBUILD index 300e8ce0f09..6acb6baeb26 100644 --- a/testing/ntfy/APKBUILD +++ b/testing/ntfy/APKBUILD @@ -24,9 +24,9 @@ ppc64le) ;; esac -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"}" build() { make VERSION=$pkgver web diff --git a/testing/nwg-bar/APKBUILD b/testing/nwg-bar/APKBUILD index 99e7bf480fe..fe08256045b 100644 --- a/testing/nwg-bar/APKBUILD +++ b/testing/nwg-bar/APKBUILD @@ -11,9 +11,9 @@ makedepends="go glib-dev cairo-dev gtk+3.0-dev gtk-layer-shell-dev" source="https://github.com/nwg-piotr/nwg-bar/archive/v$pkgver/nwg-bar-v$pkgver.tar.gz" options="!check net" # no upstream tests -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"}" build() { go build -o bin/nwg-bar . diff --git a/testing/obfs4proxy/APKBUILD b/testing/obfs4proxy/APKBUILD index 86cde217f76..65fce24727d 100644 --- a/testing/obfs4proxy/APKBUILD +++ b/testing/obfs4proxy/APKBUILD @@ -12,9 +12,9 @@ options="!strip chmod-clean" source="$pkgname-$pkgver.tar.gz::https://github.com/Yawning/obfs4/archive/obfs4proxy-$pkgver.tar.gz" builddir="$srcdir"/obfs4-$pkgname-$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"}" build() { go build -v -o ./$pkgname-executable ./$pkgname diff --git a/testing/openrc-exporter/APKBUILD b/testing/openrc-exporter/APKBUILD index 283b88b4aa9..2c60c160f28 100644 --- a/testing/openrc-exporter/APKBUILD +++ b/testing/openrc-exporter/APKBUILD @@ -19,9 +19,9 @@ source=" " options="!check" # No tests yet -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"}" build() { CGO_ENABLED=1 go build -v -ldflags "-X main.version=$pkgver" \ diff --git a/testing/podman-tui/APKBUILD b/testing/podman-tui/APKBUILD index 8600091cb3e..2ba1ce0e5f6 100644 --- a/testing/podman-tui/APKBUILD +++ b/testing/podman-tui/APKBUILD @@ -13,9 +13,9 @@ options="!check" source="$pkgname-$pkgver.tar.gz::https://github.com/containers/podman-tui/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { go build -v . diff --git a/testing/pomo/APKBUILD b/testing/pomo/APKBUILD index dceeba1b508..9aeb23e45b9 100644 --- a/testing/pomo/APKBUILD +++ b/testing/pomo/APKBUILD @@ -12,9 +12,9 @@ subpackages="$pkgname-doc" source="https://github.com/kevinschoon/pomo/archive/$pkgver/pomo-$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw -tags=libsqlite3" -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"}" build() { go build \ diff --git a/testing/popeye/APKBUILD b/testing/popeye/APKBUILD index 62a5cccf494..4250eb93beb 100644 --- a/testing/popeye/APKBUILD +++ b/testing/popeye/APKBUILD @@ -10,9 +10,9 @@ license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/derailed/popeye/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { GOLDFLAGS=" diff --git a/testing/prometheus-json-exporter/APKBUILD b/testing/prometheus-json-exporter/APKBUILD index 9301002671e..555770e38d9 100644 --- a/testing/prometheus-json-exporter/APKBUILD +++ b/testing/prometheus-json-exporter/APKBUILD @@ -19,9 +19,9 @@ source="$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz builddir="$srcdir/$_pkgname-$pkgver" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { make build diff --git a/testing/prometheus-openrc-exporter/APKBUILD b/testing/prometheus-openrc-exporter/APKBUILD index 5e076b94d4a..0acd2627869 100644 --- a/testing/prometheus-openrc-exporter/APKBUILD +++ b/testing/prometheus-openrc-exporter/APKBUILD @@ -17,9 +17,9 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~tomleb/$_pkgname/archive/$pk options="!check" builddir="$srcdir/$_pkgname-$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"}" build() { make diff --git a/testing/prometheus-postgres-exporter/APKBUILD b/testing/prometheus-postgres-exporter/APKBUILD index cdc57f63db6..d7530e80137 100644 --- a/testing/prometheus-postgres-exporter/APKBUILD +++ b/testing/prometheus-postgres-exporter/APKBUILD @@ -18,9 +18,9 @@ source="$_pkgname-$pkgver.tar.gz::https://github.com/prometheus-community/postgr builddir="$srcdir/$_pkgname-$pkgver" export GOFLAGS="$GOFLAGS -modcacherw -buildvcs=false" -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"}" build() { make build diff --git a/testing/prometheus-rethinkdb-exporter/APKBUILD b/testing/prometheus-rethinkdb-exporter/APKBUILD index 9ba7770dd6a..248451d41b8 100644 --- a/testing/prometheus-rethinkdb-exporter/APKBUILD +++ b/testing/prometheus-rethinkdb-exporter/APKBUILD @@ -15,9 +15,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/rethinkdb/prometheus-exporte " builddir="$srcdir/prometheus-exporter-$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"}" build() { make diff --git a/testing/prometheus-unbound-exporter/APKBUILD b/testing/prometheus-unbound-exporter/APKBUILD index 6c31f79c39a..b2a341c1fac 100644 --- a/testing/prometheus-unbound-exporter/APKBUILD +++ b/testing/prometheus-unbound-exporter/APKBUILD @@ -20,9 +20,9 @@ builddir="$srcdir/$_pkgname-$pkgver" options="!check" # no test suite available export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build \ diff --git a/testing/pulumi-language-java/APKBUILD b/testing/pulumi-language-java/APKBUILD index 306942a861e..a58da880907 100644 --- a/testing/pulumi-language-java/APKBUILD +++ b/testing/pulumi-language-java/APKBUILD @@ -19,9 +19,9 @@ builddir="$srcdir/pulumi-java-$pkgver" options="!check" export CGO_ENABLED=0 -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" build() { diff --git a/testing/pulumi-language-yaml/APKBUILD b/testing/pulumi-language-yaml/APKBUILD index 3045a7d1ea2..71e4b77a45e 100644 --- a/testing/pulumi-language-yaml/APKBUILD +++ b/testing/pulumi-language-yaml/APKBUILD @@ -14,9 +14,9 @@ builddir="$srcdir/pulumi-yaml-$pkgver" options="!check" export CGO_ENABLED=0 -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" build() { diff --git a/testing/pulumi/APKBUILD b/testing/pulumi/APKBUILD index 9077d5cbce6..405bd20aba8 100644 --- a/testing/pulumi/APKBUILD +++ b/testing/pulumi/APKBUILD @@ -24,9 +24,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/pulumi/pulumi/archive/v$pkgv options="!check" export CGO_ENABLED=0 -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" build() { diff --git a/testing/rancher-cli/APKBUILD b/testing/rancher-cli/APKBUILD index 1926ceef315..c70f9801f87 100644 --- a/testing/rancher-cli/APKBUILD +++ b/testing/rancher-cli/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/rancher/cli/archive/refs/tags/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"}" build() { go build -v -o bin/rancher -ldflags "-X main.VERSION=v$pkgver" diff --git a/testing/reg/APKBUILD b/testing/reg/APKBUILD index 607364db78d..7d4c4957a88 100644 --- a/testing/reg/APKBUILD +++ b/testing/reg/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="https://github.com/genuinetools/reg/archive/v$pkgver/reg-$pkgver.tar.gz" options="chmod-clean" -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"}" build() { go build \ diff --git a/testing/rke/APKBUILD b/testing/rke/APKBUILD index 4da5578ca94..e87ddc42c29 100644 --- a/testing/rke/APKBUILD +++ b/testing/rke/APKBUILD @@ -16,9 +16,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/rancher/rke/archive/v$pkgver # 1.3.2-r0: # - CVE-2021-25742 -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"}" build() { go build -v -ldflags "-X main.VERSION=$pkgver" diff --git a/testing/rootlesskit/APKBUILD b/testing/rootlesskit/APKBUILD index 4f758e8fd15..760fc870b42 100644 --- a/testing/rootlesskit/APKBUILD +++ b/testing/rootlesskit/APKBUILD @@ -14,9 +14,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/rootless-containers/rootlesskit/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { mkdir -v build diff --git a/testing/rqlite/APKBUILD b/testing/rqlite/APKBUILD index 3baef3bb7da..2ce8630f585 100644 --- a/testing/rqlite/APKBUILD +++ b/testing/rqlite/APKBUILD @@ -18,9 +18,9 @@ subpackages=" source="$pkgname-$pkgver.tar.gz::https://github.com/rqlite/rqlite/archive/refs/tags/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" build() { go build ./cmd/rqbench diff --git a/testing/ruuvi-prometheus/APKBUILD b/testing/ruuvi-prometheus/APKBUILD index aa5e464c136..60ef8a45ab6 100644 --- a/testing/ruuvi-prometheus/APKBUILD +++ b/testing/ruuvi-prometheus/APKBUILD @@ -16,9 +16,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/joneskoo/ruuvi-prometheus/ar ruuvi-prometheus.initd " -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"}" build() { go build -ldflags="-X main.version=$pkgver" diff --git a/testing/satellite/APKBUILD b/testing/satellite/APKBUILD index 0187a57f286..4434eded713 100644 --- a/testing/satellite/APKBUILD +++ b/testing/satellite/APKBUILD @@ -17,9 +17,9 @@ source=" pkggroups="satellite" builddir="$srcdir/$pkgname-v$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"}" build() { make diff --git a/testing/scalingo/APKBUILD b/testing/scalingo/APKBUILD index 63a17f38ca5..d4d0551e005 100644 --- a/testing/scalingo/APKBUILD +++ b/testing/scalingo/APKBUILD @@ -12,9 +12,9 @@ source="https://github.com/Scalingo/cli/archive/$pkgver/cli-$pkgver.tar.gz" options="chmod-clean" 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"}" build() { go build -trimpath -o bin/scalingo ./scalingo diff --git a/testing/seaweedfs/APKBUILD b/testing/seaweedfs/APKBUILD index e54b3294e9c..445e53486d2 100644 --- a/testing/seaweedfs/APKBUILD +++ b/testing/seaweedfs/APKBUILD @@ -17,9 +17,9 @@ source=" export GO111MODULE=on export CGO_ENABLED=1 -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"}" build() { GO_LDFLAGS=" diff --git a/testing/secsipidx/APKBUILD b/testing/secsipidx/APKBUILD index 06c0708f27d..1b960b7a2e1 100644 --- a/testing/secsipidx/APKBUILD +++ b/testing/secsipidx/APKBUILD @@ -12,9 +12,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/asipto/secsipidx/archive/v1. go.sum " -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" diff --git a/testing/senpai/APKBUILD b/testing/senpai/APKBUILD index dcba5aa69f6..e9f5ad8fc63 100644 --- a/testing/senpai/APKBUILD +++ b/testing/senpai/APKBUILD @@ -13,9 +13,9 @@ subpackages="$pkgname-doc" source="https://git.sr.ht/~taiite/senpai/archive/$_commit.tar.gz" builddir="$srcdir/$pkgname-$_commit" -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"}" build() { make GOFLAGS="$GOFLAGS" diff --git a/testing/singularity/APKBUILD b/testing/singularity/APKBUILD index e1338d637d6..0704382abdb 100644 --- a/testing/singularity/APKBUILD +++ b/testing/singularity/APKBUILD @@ -42,9 +42,9 @@ source="https://github.com/apptainer/singularity/releases/download/v$pkgver/sing # - CVE-2019-19724 export GOFLAGS="$GOFLAGS -modcacherw -trimpath" -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"}" prepare() { default_prepare diff --git a/testing/sipexer/APKBUILD b/testing/sipexer/APKBUILD index 3d3de698483..8f4412a3062 100644 --- a/testing/sipexer/APKBUILD +++ b/testing/sipexer/APKBUILD @@ -10,9 +10,9 @@ license="GPL-3.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/miconda/sipexer/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -o bin/ ./... diff --git a/testing/slides/APKBUILD b/testing/slides/APKBUILD index 5f1520218c0..ee4d0f9e319 100644 --- a/testing/slides/APKBUILD +++ b/testing/slides/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" checkdepends="bash" source="https://github.com/maaslalani/slides/archive/v$pkgver/slides-v$pkgver.tar.gz" -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"}" build() { make build diff --git a/testing/soju/APKBUILD b/testing/soju/APKBUILD index 27636b73a55..ca6956e9064 100644 --- a/testing/soju/APKBUILD +++ b/testing/soju/APKBUILD @@ -21,9 +21,9 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/soju/archive/v$pkgv builddir="$srcdir/$pkgname-v$pkgver" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw -tags=libsqlite3" -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"}" build() { make GOFLAGS="$GOFLAGS" diff --git a/testing/sops/APKBUILD b/testing/sops/APKBUILD index 3e45b5c275e..9cc4f770efd 100644 --- a/testing/sops/APKBUILD +++ b/testing/sops/APKBUILD @@ -18,9 +18,9 @@ options="net" # for downloading Go modules export GOFLAGS="$GOFLAGS -trimpath -modcacherw" export CGO_ENABLED=0 -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"}" build() { go build -v ./cmd/sops diff --git a/testing/sos/APKBUILD b/testing/sos/APKBUILD index 6b7ada0ee9c..e0d7fdc1754 100644 --- a/testing/sos/APKBUILD +++ b/testing/sos/APKBUILD @@ -14,9 +14,9 @@ source="sos-$pkgver.tar.gz::https://github.com/skx/sos/archive/release-$pkgver.t " builddir="$srcdir/sos-release-$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"}" build() { go build -v \ diff --git a/testing/speedtest-go/APKBUILD b/testing/speedtest-go/APKBUILD index c5452e3032c..8b3a46bb5d5 100644 --- a/testing/speedtest-go/APKBUILD +++ b/testing/speedtest-go/APKBUILD @@ -14,9 +14,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/librespeed/speedtest-go/arch speedtest-go.initd settings-change.patch" -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"}" build() { go build -trimpath -o speedtest main.go diff --git a/testing/speedtest_exporter/APKBUILD b/testing/speedtest_exporter/APKBUILD index 2aa1f295822..5cc21ca45e4 100644 --- a/testing/speedtest_exporter/APKBUILD +++ b/testing/speedtest_exporter/APKBUILD @@ -21,9 +21,9 @@ source=" " options="!check" # no tests -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"}" prepare() { default_prepare diff --git a/testing/ssh-cert-authority/APKBUILD b/testing/ssh-cert-authority/APKBUILD index 6b6a8dbcde0..e48188fe03f 100644 --- a/testing/ssh-cert-authority/APKBUILD +++ b/testing/ssh-cert-authority/APKBUILD @@ -12,9 +12,9 @@ makedepends="go" options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/cloudtools/ssh-cert-authority/archive/$pkgver.tar.gz" -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"}" build() { local pkg=github.com/cloudtools/ssh-cert-authority diff --git a/testing/step-certificates/APKBUILD b/testing/step-certificates/APKBUILD index ef91ea544a6..4e753c8fc91 100644 --- a/testing/step-certificates/APKBUILD +++ b/testing/step-certificates/APKBUILD @@ -32,9 +32,9 @@ source=" " builddir="$srcdir" -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"}" build() { make simple diff --git a/testing/stern/APKBUILD b/testing/stern/APKBUILD index acd73e77bc9..340bc635c59 100644 --- a/testing/stern/APKBUILD +++ b/testing/stern/APKBUILD @@ -15,9 +15,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/stern/stern/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { GOLDFLAGS=" diff --git a/testing/syft/APKBUILD b/testing/syft/APKBUILD index e3887df162d..c0fb260590b 100644 --- a/testing/syft/APKBUILD +++ b/testing/syft/APKBUILD @@ -13,9 +13,9 @@ options="!check" # tests need docker export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export CGO_ENABLED=0 -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"}" build() { go build -ldflags " diff --git a/testing/tangctl/APKBUILD b/testing/tangctl/APKBUILD index fe75b78b9ef..d0f0ff3bf5d 100644 --- a/testing/tangctl/APKBUILD +++ b/testing/tangctl/APKBUILD @@ -23,9 +23,9 @@ esac export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export GOPATH="$srcdir" export CGO_ENABLED=0 -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"}" build() { go build ./cmd/tangctl diff --git a/testing/taskcafe/APKBUILD b/testing/taskcafe/APKBUILD index 94a875e2ea8..d52f96fa52a 100644 --- a/testing/taskcafe/APKBUILD +++ b/testing/taskcafe/APKBUILD @@ -22,9 +22,9 @@ options="!check chmod-clean net" export GOPATH="$srcdir" export GOFLAGS="$GOFLAGS -trimpath" -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"}" build() { export NODE_OPTIONS=--openssl-legacy-provider diff --git a/testing/terraform-provider-libvirt/APKBUILD b/testing/terraform-provider-libvirt/APKBUILD index b68f585ab2f..4bb1a418af7 100644 --- a/testing/terraform-provider-libvirt/APKBUILD +++ b/testing/terraform-provider-libvirt/APKBUILD @@ -13,9 +13,9 @@ source="https://github.com/dmacvicar/terraform-provider-libvirt/archive/v$pkgver " options="!check" # testsuite takes too long to run and appears need a running libvirt -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"}" build() { unset LDFLAGS diff --git a/testing/terragrunt/APKBUILD b/testing/terragrunt/APKBUILD index d3e40c7020a..f5955a6f67d 100644 --- a/testing/terragrunt/APKBUILD +++ b/testing/terragrunt/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/gruntwork-io/terragrunt/archive/refs/tags/v$pkgver.tar.gz" options="!check" # Various tests need AWS or Google cloud credentials -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"}" build() { go build -v -o bin/$pkgname -ldflags "-X main.VERSION=v$pkgver" diff --git a/testing/thanos/APKBUILD b/testing/thanos/APKBUILD index d3ae4e74eda..e62dda27c7d 100644 --- a/testing/thanos/APKBUILD +++ b/testing/thanos/APKBUILD @@ -16,9 +16,9 @@ source=" thanos.confd " -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 -trimpath" build() { diff --git a/testing/ticker/APKBUILD b/testing/ticker/APKBUILD index 9cea5633f10..0ffbaee6e57 100644 --- a/testing/ticker/APKBUILD +++ b/testing/ticker/APKBUILD @@ -15,9 +15,9 @@ subpackages=" " source="$pkgname-$pkgver.tar.gz::https://github.com/achannarasappa/ticker/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -o bin/ticker \ diff --git a/testing/tlsrouter/APKBUILD b/testing/tlsrouter/APKBUILD index 7bb7ce03253..5d8a49337c9 100644 --- a/testing/tlsrouter/APKBUILD +++ b/testing/tlsrouter/APKBUILD @@ -20,9 +20,9 @@ source="tlsrouter-$pkgver.tar.gz::https://github.com/inetaf/tcpproxy/tarball/$_s builddir="$srcdir/inetaf-tcpproxy-$_short_commit/cmd/tlsrouter" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build . diff --git a/testing/trivy/APKBUILD b/testing/trivy/APKBUILD index b39b9dc7011..149483965f7 100644 --- a/testing/trivy/APKBUILD +++ b/testing/trivy/APKBUILD @@ -13,9 +13,9 @@ makedepends="btrfs-progs-dev go linux-headers lvm2-dev" source="https://github.com/aquasecurity/trivy/archive/v$pkgver/trivy-$pkgver.tar.gz" options="net !check" # needs tinygo to turn go into wasm for tests -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"}" build() { make build VERSION=$pkgver diff --git a/testing/tty-proxy/APKBUILD b/testing/tty-proxy/APKBUILD index fe2ce09aa57..fb3e1ad343c 100644 --- a/testing/tty-proxy/APKBUILD +++ b/testing/tty-proxy/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="https://github.com/elisescu/tty-proxy/archive/v$pkgver/tty-proxy-$pkgver.tar.gz" options="chmod-clean !check" # no test suite -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"}" build() { go build \ diff --git a/testing/tty-share/APKBUILD b/testing/tty-share/APKBUILD index 32fe8b0e212..ac11503d3d6 100644 --- a/testing/tty-share/APKBUILD +++ b/testing/tty-share/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="https://github.com/elisescu/tty-share/archive/v$pkgver/tty-share-$pkgver.tar.gz" options="chmod-clean !check" # no test suite -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"}" build() { go build \ diff --git a/testing/undock/APKBUILD b/testing/undock/APKBUILD index a1492f02ab3..e32885ce5f6 100644 --- a/testing/undock/APKBUILD +++ b/testing/undock/APKBUILD @@ -9,9 +9,9 @@ license="MIT" makedepends="go linux-headers gpgme-dev btrfs-progs-dev lvm2-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/crazy-max/undock/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { export _gotags="containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" diff --git a/testing/unfurl/APKBUILD b/testing/unfurl/APKBUILD index d67215ae550..ecf7abf575d 100644 --- a/testing/unfurl/APKBUILD +++ b/testing/unfurl/APKBUILD @@ -10,9 +10,9 @@ license="MIT" makedepends="go" source="https://github.com/tomnomnom/unfurl/archive/v$pkgver/unfurl-v$pkgver.tar.gz" -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"}" build() { go build diff --git a/testing/uni/APKBUILD b/testing/uni/APKBUILD index aad68707ebc..c5480f08b1e 100644 --- a/testing/uni/APKBUILD +++ b/testing/uni/APKBUILD @@ -12,9 +12,9 @@ options="!check" # no test files source="$pkgname-$pkgver.tar.gz::https://github.com/arp242/uni/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { go build -v . diff --git a/testing/up/APKBUILD b/testing/up/APKBUILD index b558234b001..5ff175a6d42 100644 --- a/testing/up/APKBUILD +++ b/testing/up/APKBUILD @@ -10,9 +10,9 @@ license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/akavel/up/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v -o bin/$pkgname diff --git a/testing/usql/APKBUILD b/testing/usql/APKBUILD index 2822beafce0..d18a75dc60e 100644 --- a/testing/usql/APKBUILD +++ b/testing/usql/APKBUILD @@ -14,9 +14,9 @@ source=" export CGO_ENABLED=1 # needed for godror and odbc drivers export GOFLAGS="$GOFLAGS -modcacherw" -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 _GOTAGS="all sqlite_app_armor sqlite_fts5 sqlite_introspect sqlite_json1 sqlite_stat4 sqlite_userauth sqlite_vtable sqlite_icu" diff --git a/testing/vals/APKBUILD b/testing/vals/APKBUILD index 52ba3d67054..6d8aa7f1e78 100644 --- a/testing/vals/APKBUILD +++ b/testing/vals/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/variantdev/vals/archive/refs/tags/v$pkgver.tar.gz" options="!check" # Tests require various value sources (vault, sops, ...) -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"}" build() { go build -v \ diff --git a/testing/variant/APKBUILD b/testing/variant/APKBUILD index 21db1451acd..0f357e96c11 100644 --- a/testing/variant/APKBUILD +++ b/testing/variant/APKBUILD @@ -10,9 +10,9 @@ makedepends="go" checkdepends="bash" source="$pkgname-$pkgver.tar.gz::https://github.com/mumoshu/variant/archive/refs/tags/v$pkgver.tar.gz" -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"}" build() { go build -v \ diff --git a/testing/wireguard-go/APKBUILD b/testing/wireguard-go/APKBUILD index 6bc78612eba..19b5292dd27 100644 --- a/testing/wireguard-go/APKBUILD +++ b/testing/wireguard-go/APKBUILD @@ -13,9 +13,9 @@ subpackages="$pkgname-doc" options="!check" source="https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-$pkgver.tar.xz" -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"}" build() { make diff --git a/testing/wl-gammarelay/APKBUILD b/testing/wl-gammarelay/APKBUILD index 5d2efe0e4ef..477087ccb05 100644 --- a/testing/wl-gammarelay/APKBUILD +++ b/testing/wl-gammarelay/APKBUILD @@ -12,9 +12,9 @@ source="https://github.com/jeremija/wl-gammarelay/archive/v$pkgver/wl-gammarelay options="!check" # no test suite export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { make -C protocol diff --git a/testing/wormhole-william/APKBUILD b/testing/wormhole-william/APKBUILD index f8aa50928c6..7818c9c02fb 100644 --- a/testing/wormhole-william/APKBUILD +++ b/testing/wormhole-william/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/psanford/wormhole-william/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -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"}" build() { go build -v . diff --git a/testing/wtfutil/APKBUILD b/testing/wtfutil/APKBUILD index f06041642f4..1269798f0d5 100644 --- a/testing/wtfutil/APKBUILD +++ b/testing/wtfutil/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/wtfutil/wtf/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/wtf-$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"}" build() { make PREFIX=/usr diff --git a/testing/xmpp-dns/APKBUILD b/testing/xmpp-dns/APKBUILD index 339e8039179..74eea0fbae6 100644 --- a/testing/xmpp-dns/APKBUILD +++ b/testing/xmpp-dns/APKBUILD @@ -11,9 +11,9 @@ makedepends="go" source="$pkgname-$pkgver.tar.gz::https://salsa.debian.org/mdosch/xmpp-dns/-/archive/v$pkgver/xmpp-dns-v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$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" build() { diff --git a/testing/ytt/APKBUILD b/testing/ytt/APKBUILD index 92303ae2811..4a516743ffc 100644 --- a/testing/ytt/APKBUILD +++ b/testing/ytt/APKBUILD @@ -13,9 +13,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/vmware-tanzu/carvel-ytt/arch 0001-e2e-tests.patch" builddir="$srcdir/src/github.com/k14s/$pkgname" -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"}" prepare() { mkdir -p ${builddir%/*} diff --git a/testing/zabbix-agent2-plugin-alpine/APKBUILD b/testing/zabbix-agent2-plugin-alpine/APKBUILD index dc5b35d735a..77ad9f2fd76 100644 --- a/testing/zabbix-agent2-plugin-alpine/APKBUILD +++ b/testing/zabbix-agent2-plugin-alpine/APKBUILD @@ -15,9 +15,9 @@ builddir="$srcdir/zabbix-agent2-plugins-v$pkgver" provides="zabbix-agent2-alpine=$pkgver-r$pkgrel" export GOFLAGS="$GOFLAGS -modcacherw" -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"}" build() { go build ./cmd/zabbix-agent2-plugin-alpine.go diff --git a/testing/zrepl/APKBUILD b/testing/zrepl/APKBUILD index 3aee6c4a45b..2b5ecc4bb76 100644 --- a/testing/zrepl/APKBUILD +++ b/testing/zrepl/APKBUILD @@ -20,9 +20,9 @@ source=" zrepl.initd " -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"}" build() { export GO111MODULE=on |