mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
3ab24891c4
commit
d4bb4941dd
|
@ -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
|
||||
- grype --version | grep {{version}}
|
||||
|
|
Loading…
Reference in a new issue