mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
27 lines
538 B
YAML
27 lines
538 B
YAML
|
distributable:
|
||
|
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: trufflesecurity/trufflehog
|
||
|
|
||
|
provides:
|
||
|
- bin/trufflehog
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.21
|
||
|
|
||
|
script:
|
||
|
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
||
|
|
||
|
env:
|
||
|
CGO_ENABLED: 0
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
||
|
|
||
|
test:
|
||
|
trufflehog --version 2>&1 | grep -F "{{version}}"
|