From 23ee2b158eb9334c20d4c8ffc582749f4744e872 Mon Sep 17 00:00:00 2001 From: Philippe Richard Date: Thu, 4 Jul 2024 13:12:13 -0400 Subject: [PATCH] fix: disable cgo CGO builds are causing the binaries to be non-launchable on more dated OS images. This change disables CGO to prevent portability issues. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6ba40638..4d42ed47 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ go = docker run --rm -i \ -e "GOARCH=$(GOARCH)" \ -e "GO111MODULE=on" \ -e "GOFLAGS=-mod=vendor" \ + -e "CGO_ENABLED=0" \ -e "GOCACHE=$(docker_dir)/target/.cache/go" \ -v "$(CURDIR):$(docker_dir)" \ -w "$(docker_dir)" \ @@ -44,6 +45,7 @@ go = GOOS=$(GOOS) \ GO111MODULE=on \ GOFLAGS=-mod=vendor \ GOCACHE=$(docker_dir)/target/.cache/go \ + CGO_ENABLED=0 \ $(shell which go) endif