Skip to content

Commit 3102e13

Browse files
authored
Merge pull request #8219 from killianmuldoon/pr-fix-release-build
🐛 Fix release-binary for static linking
2 parents 3813555 + bd67587 commit 3102e13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,11 @@ release-binary: $(RELEASE_DIR)
925925
-e CGO_ENABLED=0 \
926926
-e GOOS=$(GOOS) \
927927
-e GOARCH=$(GOARCH) \
928+
-e GOCACHE=/tmp/ \
929+
--user 1000:1000 \
928930
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
929931
-w /workspace \
930932
golang:$(GO_VERSION) \
931-
git config --global --add safe.directory /workspace; \
932933
go build -a -trimpath -ldflags "$(LDFLAGS) -extldflags '-static'" \
933934
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY)) $(BUILD_PATH)
934935

0 commit comments

Comments
 (0)