diff --git a/.goreleaser.yml b/.goreleaser.yml index b282570b..a9def635 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,7 +20,6 @@ builds: - -trimpath ldflags: - - -buildid= - -X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version={{ .Version }} archives: diff --git a/hack/build-binaries.sh b/hack/build-binaries.sh index d5112523..7cf26736 100755 --- a/hack/build-binaries.sh +++ b/hack/build-binaries.sh @@ -14,7 +14,7 @@ go mod tidy # makes builds reproducible export CGO_ENABLED=0 -LDFLAGS="-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=$VERSION -buildid=" +LDFLAGS="-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=$VERSION" ./hack/build.sh $VERSION # Used to generate website/generated.go used by ytt website diff --git a/hack/build.sh b/hack/build.sh index 93f3199f..b4e61803 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -7,7 +7,7 @@ VERSION="${1:-$LATEST_GIT_TAG}" # makes builds reproducible export CGO_ENABLED=0 -LDFLAGS="-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=$VERSION -buildid=" +LDFLAGS="-X github.com/vmware-tanzu/carvel-ytt/pkg/version.Version=$VERSION" rm -f website/generated.go diff --git a/hack/test-windows.ps1 b/hack/test-windows.ps1 index 4ac62c07..0307a413 100755 --- a/hack/test-windows.ps1 +++ b/hack/test-windows.ps1 @@ -2,7 +2,7 @@ # makes builds reproducible $env:CGO_ENABLED = 0 -$repro_flags = "-ldflags=-buildid= -trimpath" +$repro_flags = "-ldflags=-trimpath" echo Formatting go fmt ./cmd/... ./pkg/...