Skip to content

Commit

Permalink
Merge pull request #8200 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…8199-to-release-1.3

[release-1.3] 🐛 Fix git config in release-binary builds
  • Loading branch information
sbueringer committed Feb 28, 2023
2 parents 38ec26a + 422c90f commit 26d03d2
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 26d03d2

Please sign in to comment.