Skip to content

Commit

Permalink
Fix git config in release-binary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
killianmuldoon authored and k8s-infra-cherrypick-robot committed Feb 28, 2023
1 parent 38ec26a commit 422c90f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ release-binary: $(RELEASE_DIR)
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
-w /workspace \
golang:$(GO_VERSION) \
git config --global --add safe.directory /workspace; \
go build -a -trimpath -ldflags "$(LDFLAGS) -extldflags '-static'" \
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY)) $(BUILD_PATH)

Expand Down

0 comments on commit 422c90f

Please sign in to comment.