diff options
author | Joan Bruguera | 2021-01-06 17:00:57 +0100 |
---|---|---|
committer | Joan Bruguera | 2021-01-06 17:01:41 +0100 |
commit | e31766a667e0241c5b450c7e0e549535d4de88e1 (patch) | |
tree | 6d10308608f09af03960427b60a505d81181e409 | |
parent | 997a8f2f66de4edbbe3a527052a097c71d2040e0 (diff) | |
download | aur-e31766a667e0241c5b450c7e0e549535d4de88e1.tar.gz |
Improvement: Set version and commit for 'deck version'.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = deck pkgdesc = decK: Configuration management and drift detection for Kong and Kong Enterprise pkgver = 1.2.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Kong/deck arch = x86_64 license = Apache @@ -1,7 +1,7 @@ # Maintainer: Joan Bruguera Micó <joanbrugueram@gmail.com> pkgname=deck pkgver=1.2.3 -pkgrel=1 +pkgrel=2 pkgdesc='decK: Configuration management and drift detection for Kong and Kong Enterprise' arch=('x86_64') url="https://github.com/Kong/$pkgname" @@ -22,7 +22,7 @@ build() { export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - go build -o build ./... + go build -o build -ldflags "-X github.com/kong/deck/cmd.VERSION=$pkgver -X github.com/kong/deck/cmd.COMMIT=SourceRelease" ./... } check() { |