From b9ab77d62d9a89cae3ed8d3841d723421a488f67 Mon Sep 17 00:00:00 2001 From: Hector Date: Thu, 22 Jun 2023 15:22:42 +0000 Subject: [PATCH] build: disable cgo for makefile build (!97) * Disable `CGO` in the makefile build to avoid dependencies on external C libraries * This also aligns with the build done for releases and docker images https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/merge_requests/97 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3a6ae6..e1854b8 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ check/fmt: download # Build project .PHONY: build build: - go build \ + CGO_ENABLED=0 go build \ -ldflags "\ -X main.version=${shell git describe --tags} \ -X main.commit=${shell git rev-parse HEAD} \