From 0ab8a7b23027f7146ee67e36a5c7371492d676cd Mon Sep 17 00:00:00 2001 From: Jose Vazquez Date: Thu, 4 Jan 2024 12:43:02 +0100 Subject: [PATCH] CLOUDP-220809: Fix v1.7.3 rebuilds --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 10851c1569..3222ce0f33 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ e2e-openshift-upgrade: .PHONY: manager manager: generate fmt vet ## Build manager binary @echo "Building operator with version $(VERSION)" - GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH) go build -o bin/manager -ldflags="-X github.com/mongodb/mongodb-atlas-kubernetes/pkg/version.Version=$(VERSION)" cmd/manager/main.go + CGO_ENABLED=0 GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH) go build -o bin/manager -ldflags="-X github.com/mongodb/mongodb-atlas-kubernetes/pkg/version.Version=$(VERSION)" cmd/manager/main.go .PHONY: run run: generate fmt vet manifests ## Run against the configured Kubernetes cluster in ~/.kube/config