From fa07a1734b208fde09e648a511f6702694b30d1b Mon Sep 17 00:00:00 2001 From: killianmuldoon Date: Tue, 28 Feb 2023 18:17:21 +0000 Subject: [PATCH] Fix git config in release-binary builds --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2a1f9c79bc79..a18de96dcd6c 100644 --- a/Makefile +++ b/Makefile @@ -924,6 +924,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)