fix(grype)

closes #5068
This commit is contained in:
Jacob Heider 2024-01-31 13:17:07 -05:00 committed by Jacob Heider
parent 3ab24891c4
commit d4bb4941dd

View file

@ -1,11 +1,13 @@
distributable:
url: https://github.com/anchore/grype/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: anchore/grype
build:
dependencies:
go.dev: '*'
go.dev: ^1.21
script:
- go build $GO_ARGS -ldflags="$LD_FLAGS" ./cmd/grype
env:
@ -13,11 +15,16 @@ build:
- -s -w
- -X main.version={{version}}
- -X main.gitCommit=pkgx
linux:
LD_FLAGS:
- -buildmode=pie
GO_ARGS:
- -trimpath
- -o="{{prefix}}/bin/grype"
provides:
- bin/grype
test:
script:
- grype --version | grep {{version}}
- grype --version
- grype --version | grep {{version}}