diff --git a/projects/trufflesecurity.com/trufflehog/package.yml b/projects/trufflesecurity.com/trufflehog/package.yml index 88b7b226..873d0a4b 100644 --- a/projects/trufflesecurity.com/trufflehog/package.yml +++ b/projects/trufflesecurity.com/trufflehog/package.yml @@ -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}}"