diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-05-24 08:18:20 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-05-24 08:19:05 +0000 |
commit | beb97c427b5a00e29130c6305e3b3989aef775e0 (patch) | |
tree | ba5407ee40de1079e85b6fd1b97efbc7e3ddf28c | |
parent | a625eede16a7a9f4d422163e1836413c10e705f2 (diff) | |
download | aports-beb97c427b5a00e29130c6305e3b3989aef775e0.tar.bz2 aports-beb97c427b5a00e29130c6305e3b3989aef775e0.tar.xz |
community/caddy: fix cleanup of go modcache
also enable tests on other arches than x86
-rw-r--r-- | community/caddy/APKBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/community/caddy/APKBUILD b/community/caddy/APKBUILD index e60dce9e24..8cbbb7a4c2 100644 --- a/community/caddy/APKBUILD +++ b/community/caddy/APKBUILD @@ -7,7 +7,10 @@ pkgdesc="Fast, cross-platform HTTP/2 web server with automatic HTTPS" url="https://caddyserver.com/" arch="all !s390x" license="Apache-2.0" -options="!check" # fails on builders due to containerization edge-cases +# tests fail on x86 builders due to containerization edge-cases +case $CARCH in + x86) options="!check";; +esac depends="ca-certificates" makedepends="go libcap bash" subpackages="$pkgname-openrc" @@ -21,6 +24,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mholt/$pkgname/archive/v$pkg " builddir="$srcdir/src/github.com/mholt/$pkgname" +export GOPATH="$srcdir" + prepare() { mkdir -p ${builddir%/*} mv "$srcdir"/$pkgname-$pkgver "$builddir"/ @@ -29,14 +34,12 @@ prepare() { } build() { - export GOPATH="$srcdir" GO111MODULE=on go build -v -o bin/caddy -ldflags \ "-X github.com/mholt/caddy/caddy/caddymain.gitTag=$pkgver" \ ./caddy } check() { - export GOPATH="$srcdir" GO111MODULE=on go test ./... } |