Skip to content

Commit bd67587

Browse files
Fix release-binary for static linking
Signed-off-by: killianmuldoon <[email protected]>
1 parent 6fede8c commit bd67587

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
@@ -921,10 +921,11 @@ release-binary: $(RELEASE_DIR)
921921
-e CGO_ENABLED=0 \
922922
-e GOOS=$(GOOS) \
923923
-e GOARCH=$(GOARCH) \
924+
-e GOCACHE=/tmp/ \
925+
--user 1000:1000 \
924926
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
925927
-w /workspace \
926928
golang:$(GO_VERSION) \
927-
git config --global --add safe.directory /workspace; \
928929
go build -a -trimpath -ldflags "$(LDFLAGS) -extldflags '-static'" \
929930
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY)) $(BUILD_PATH)
930931

0 commit comments

Comments
 (0)