diff options
author | psykose <alice@ayaya.dev> | 2022-08-04 10:32:56 +0000 |
---|---|---|
committer | psykose <alice@ayaya.dev> | 2022-08-04 12:33:04 +0200 |
commit | d9e95826c086ba4b679198c1d458746d48ef8b3e (patch) | |
tree | dc0d717c8c3a045ec8b88fda24b5019b342782d4 /testing/kopia/APKBUILD | |
parent | c1b3caf678a639c1f902aad6dc4b8f0a1d600e97 (diff) | |
download | aports-d9e95826c086ba4b679198c1d458746d48ef8b3e.zip |
testing/*: add gocache vars
see cffbff77e1cf386d901febec4a35b2a905065514
Diffstat (limited to 'testing/kopia/APKBUILD')
-rw-r--r-- | testing/kopia/APKBUILD | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/kopia/APKBUILD b/testing/kopia/APKBUILD index eb367f326dd..68d5a01591e 100644 --- a/testing/kopia/APKBUILD +++ b/testing/kopia/APKBUILD @@ -14,12 +14,14 @@ 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 GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" -export GOPATH="$srcdir" export CGO_ENABLED=0 build() { - go build -ldflags "-s -w -X github.com/kopia/kopia/repo.BuildVersion=$pkgver" + go build -ldflags "-X github.com/kopia/kopia/repo.BuildVersion=$pkgver" ./kopia --completion-script-bash > $pkgname.bash ./kopia --completion-script-zsh > $pkgname.zsh |