pantry/projects/github.com/anchore/grype/package.yml
2023-10-20 18:23:56 -04:00

24 lines
493 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: '*'
script:
- go build $GO_ARGS -ldflags="$LD_FLAGS" ./cmd/grype
env:
LD_FLAGS:
- -s -w
- -X main.version={{version}}
- -X main.gitCommit=pkgx
GO_ARGS:
- -trimpath
- -o="{{prefix}}/bin/grype"
provides:
- bin/grype
test:
script:
- grype --version | grep {{version}}