1
0
forked from pool/trivy

- actually create a PIE binary

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/trivy?expand=0&rev=61
This commit is contained in:
Dirk Mueller 2023-05-11 17:05:19 +00:00 committed by Git OBS Bridge
parent c266b89032
commit fa6666214b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 11 17:05:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
- actually create a PIE binary
-------------------------------------------------------------------
Fri Apr 28 07:31:35 UTC 2023 - dmueller@suse.com

View File

@ -46,7 +46,7 @@ name of the container.
%setup -qa1
%build
export CGO_ENABLED=0
export CGO_ENABLED=1
go build -o trivy -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w -X=main.version=%{version}" cmd/trivy/main.go
%install