mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(trufflehog)
wtf is trufflehog?
This commit is contained in:
parent
5727636abe
commit
a6edc9f2fa
1 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
distributable:
|
||||
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/v{{version}}.tar.gz
|
||||
url: https://github.com/trufflesecurity/trufflehog/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
|
@ -13,14 +13,16 @@ build:
|
|||
go.dev: ^1.21
|
||||
|
||||
script:
|
||||
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
||||
- go build -v -ldflags="$GO_LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
||||
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
GO_LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
||||
linux:
|
||||
GO_LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test:
|
||||
trufflehog --version 2>&1 | grep -F "{{version}}"
|
||||
test: trufflehog --version 2>&1 | grep -F "{{version}}"
|
||||
|
|
Loading…
Reference in a new issue