Accepting request 1086593 from Virtualization:containers

- actually create a PIE binary

OBS-URL: https://build.opensuse.org/request/show/1086593
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/trivy?expand=0&rev=52
This commit is contained in:
Dominique Leuenberger 2023-05-12 18:37:44 +00:00 committed by Git OBS Bridge
commit 32822cf39a
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