Skip to content

Commit fa07a17

Browse files
Fix git config in release-binary builds
1 parent 2aa9c9d commit fa07a17

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
@@ -924,6 +924,7 @@ release-binary: $(RELEASE_DIR)
924924
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
925925
-w /workspace \
926926
golang:$(GO_VERSION) \
927+
git config --global --add safe.directory /workspace; \
927928
go build -a -trimpath -ldflags "$(LDFLAGS) -extldflags '-static'" \
928929
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY)) $(BUILD_PATH)
929930

0 commit comments

Comments
 (0)