diff options
author | David McKay | 2018-04-25 11:52:55 +0100 |
---|---|---|
committer | David McKay | 2018-04-25 11:52:55 +0100 |
commit | 0d6ff7bf841875c76179d6970903fa4c9cc64a42 (patch) | |
tree | edd3e64f2c62b7b8c94f35e62b43fd52fee214fc /PKGBUILD | |
parent | 0d47f163b3be2b9436f07289b8b563780aaa3d71 (diff) | |
download | aur-0d6ff7bf841875c76179d6970903fa4c9cc64a42.tar.gz |
Fixing GOPATH error
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ pkgname=openfaas-cli pkgdesc="OpenFaaS CLI" pkgver=0.6.8 -pkgrel=3 +pkgrel=4 arch=('i686' 'x86_64' 'arm64') url="https://github.com/openfaas/faas-cli" license=('mit') @@ -13,9 +13,9 @@ source=("https://github.com/openfaas/faas-cli/archive/$pkgver.tar.gz") sha256sums=('c9bab5c1ed2bab75339745439f30e40362fe1b2d3cf05518b569b5683c66ac68') build() { + GOPATH="$(dirname "$PWD")" cd "$srcdir/faas-cli-$pkgver" - GOPATH="$srcdir" dep ensure CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w -X github.com/openfaas/faas-cli/version.Version=$pkgver" -a -installsuffix cgo -o faas-cli } |