Skip to content

Commit 69ae593

Browse files
omit vcs info from build (#1514)
The detected info is interfering with the manually specified Scorecard version in the LDFLAGS. While `buildvcs` has been present since Go 1.18, Go 1.24 changed the behavior again. Our docker image uses Go 1.24 as of 3676bbc. https://go.dev/doc/go1.24#go-command Signed-off-by: Spencer Schrock <[email protected]>
1 parent 6a62a1c commit 69ae593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ LDFLAGS=-X sigs.k8s.io/release-utils/version.gitVersion=v5.1.1 -X sigs.k8s.io/re
33

44
build: ## Runs go build on repo
55
# Run go build and generate scorecard executable
6-
CGO_ENABLED=0 go build -o scorecard-action -trimpath -a -tags netgo -ldflags '$(LDFLAGS)'
6+
CGO_ENABLED=0 go build -o scorecard-action -trimpath -a -tags netgo -buildvcs=false -ldflags '$(LDFLAGS)'

0 commit comments

Comments
 (0)