upgpkg: drone-cli 1.3.3-2
Ensure version is present in compiled binary.
This commit is contained in:
parent
2a893cd13c
commit
c318bd932b
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
pkgname=drone-cli
|
||||
pkgver=1.3.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Command line interface for Drone CI"
|
||||
arch=('x86_64')
|
||||
url="https://docs.drone.io/cli"
|
||||
|
@ -34,7 +34,7 @@ build() {
|
|||
-buildmode=pie \
|
||||
-mod=vendor \
|
||||
-modcacherw \
|
||||
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
|
||||
-ldflags "-linkmode external -extldflags ${LDFLAGS} -X main.version=$pkgver" \
|
||||
-o build \
|
||||
./...
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue