pantry/projects/github.com/anchore/grype/package.yml
Jacob Heider d4bb4941dd fix(grype)
closes #5068
2024-01-31 13:28:44 -05:00

30 lines
559 B
YAML

distributable:
url: https://github.com/anchore/grype/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: anchore/grype
build:
dependencies:
go.dev: ^1.21
script:
- go build $GO_ARGS -ldflags="$LD_FLAGS" ./cmd/grype
env:
LD_FLAGS:
- -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:
- grype --version
- grype --version | grep {{version}}