summaryrefslogtreecommitdiff
path: root/testing/sos/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/sos/APKBUILD')
-rw-r--r--testing/sos/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/sos/APKBUILD b/testing/sos/APKBUILD
index aff0ce84d6c..5ee379e61fa 100644
--- a/testing/sos/APKBUILD
+++ b/testing/sos/APKBUILD
@@ -14,12 +14,14 @@ source="sos-$pkgver.tar.gz::https://github.com/skx/sos/archive/release-$pkgver.t
"
builddir="$srcdir/sos-release-$pkgver"
-export GOPATH="$srcdir"
+export GOCACHE="$srcdir/go-cache"
+export GOTMPDIR="$srcdir"
+export GOMODCACHE="$srcdir/go"
build() {
go build -v \
-trimpath \
- -ldflags="-s -w -X main.version=$pkgver" \
+ -ldflags="-X main.version=$pkgver" \
-o ./bin/sos
}