From ebd45b056887a1f1037d7697c404f66f8033f25e Mon Sep 17 00:00:00 2001 From: g0rbe Date: Fri, 31 Mar 2023 07:41:25 +0200 Subject: [PATCH] fix for https://github.com/golang/go/issues/57328 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 280ef5b..a44780b 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ LDFLAGS += -X 'main.Version=$(shell git describe --tags --abbrev=0)' LDFLAGS += -X 'main.Commit=$(shell git rev-list -1 HEAD)' build: - go build -o columbus-scanner -ldflags="$(LDFLAGS)" . + CGO_ENABLED=0 go build -o columbus-scanner -ldflags="$(LDFLAGS)" . build-dev: - go build -o columbus-scanner-dev --race . + CGO_ENABLED=0 go build -o columbus-scanner-dev --race . release: build sha512sum columbus-scanner | gpg --clearsign -u daniel@elmasy.com > columbus-scanner.sha \ No newline at end of file