diff --git a/trufflehog.spec b/trufflehog.spec index 61db03e..c8bcd48 100644 --- a/trufflehog.spec +++ b/trufflehog.spec @@ -7,7 +7,7 @@ Release: 1 Summary: Find credentials URL: https://trufflesecurity.com Source0: https://github.com/trufflesecurity/trufflehog/archive/v%{version}/%{name}-%{version}.tar.gz -License: AGPL-3.0 +License: AGPLv3 Group: Development/Other BuildRequires: go >= 1.21 BuildRequires: git-core @@ -29,8 +29,9 @@ and billions of TLS certificates using our Driftwood technology. %setup -q %build -go mod download -CGO_ENABLED=0 go build -a -o bin/trufflehog main.go +export GOPROXY=direct + +CGO_ENABLED=0 go build --ldflags="-s -w" -a -o bin/trufflehog main.go upx bin/%{name} %install