diff --git a/Makefile b/Makefile index 6f58a1e149..b6918c0c97 100644 --- a/Makefile +++ b/Makefile @@ -602,6 +602,7 @@ release-binary: $(RELEASE_DIR) versions.mk build-toolchain ## Release binary -v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \ -w /workspace \ $(TOOLCHAIN_IMAGE) \ + git config --global --add safe.directory /workspace; \ go build -ldflags '$(LDFLAGS) -extldflags "-static"' \ -o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH)$(EXT) $(RELEASE_BINARY)