Skip to content

Commit b5607e3

Browse files
authored
Merge pull request #4306 from richardcase/binaries_build_fix
fix: building release-binaries fails
2 parents bf08732 + ef88cd0 commit b5607e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ release-binary: $(RELEASE_DIR) versions.mk build-toolchain ## Release binary
602602
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
603603
-w /workspace \
604604
$(TOOLCHAIN_IMAGE) \
605+
git config --global --add safe.directory /workspace; \
605606
go build -ldflags '$(LDFLAGS) -extldflags "-static"' \
606607
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH)$(EXT) $(RELEASE_BINARY)
607608

0 commit comments

Comments
 (0)