Date: Monday, April 18, 2022 @ 17:41:23
  Author: hashworks
Revision: 1187012

upgpkg: trivy 0.26.0-2, fix `trivy version`

Modified:
  trivy/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-04-18 17:35:12 UTC (rev 1187011)
+++ PKGBUILD    2022-04-18 17:41:23 UTC (rev 1187012)
@@ -3,7 +3,7 @@
 
 pkgname=trivy
 pkgver=0.26.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A Simple and Comprehensive Vulnerability Scanner for Containers, 
Suitable for CI'
 arch=('x86_64')
 url='https://github.com/aquasecurity/trivy'
@@ -32,8 +32,8 @@
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external 
-mod=readonly -modcacherw"
-  go build .
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  go build -ldflags "-linkmode=external -s -w -X=main.version=${pkgver}" .
 }
 
 package() {

Reply via email to