Skip to content

Commit ef2c921

Browse files
authored
Merge pull request #8199 from killianmuldoon/fix-release-binary
🐛 Fix git config in release-binary builds
2 parents 2aa9c9d + fa07a17 commit ef2c921

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)