mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(trufflehog)
wtf is trufflehog?
This commit is contained in:
parent
5727636abe
commit
a6edc9f2fa
|
@ -1,5 +1,5 @@
|
||||||
distributable:
|
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
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
@ -13,14 +13,16 @@ build:
|
||||||
go.dev: ^1.21
|
go.dev: ^1.21
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
- go build -v -ldflags="$GO_LDFLAGS" -o "{{prefix}}"/bin/trufflehog
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
LDFLAGS:
|
GO_LDFLAGS:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
- -X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{version}}
|
||||||
|
linux:
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
test:
|
test: trufflehog --version 2>&1 | grep -F "{{version}}"
|
||||||
trufflehog --version 2>&1 | grep -F "{{version}}"
|
|
||||||
|
|
Loading…
Reference in a new issue