From 6aad7b6f49a6f0f16fbe4313ccfa1b5a251e94bb Mon Sep 17 00:00:00 2001 From: alex <8968914+acpana@users.noreply.github.com> Date: Wed, 21 Jun 2023 08:52:56 -0700 Subject: [PATCH] fix: statically link gator binary (#2840) Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 588266b0327..2abcc54efb9 100644 --- a/Makefile +++ b/Makefile @@ -538,7 +538,7 @@ gator: bin/gator-$(GOOS)-$(GOARCH) mv bin/gator-$(GOOS)-$(GOARCH) bin/gator bin/gator-$(GOOS)-$(GOARCH): - GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(BIN_DIR)/gator-$(GOOS)-$(GOARCH) -ldflags $(LDFLAGS) ./cmd/gator + GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 GO111MODULE=on go build -o $(BIN_DIR)/gator-$(GOOS)-$(GOARCH) -ldflags $(LDFLAGS) ./cmd/gator tilt-prepare: mkdir -p .tiltbuild/charts