From 48404836882f8ea0633c0af9a0401716f107d6ad Mon Sep 17 00:00:00 2001 From: Tomas Vilemaitis Date: Wed, 16 Oct 2024 18:11:58 +0300 Subject: [PATCH] disable cgo --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3c4c230..ab8e831 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,6 @@ run: go run . compile: - GOARCH=amd64 GOOS=darwin go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-darwin - GOARCH=amd64 GOOS=linux go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-linux - GOARCH=amd64 GOOS=windows go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-windows + CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-darwin + CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-linux + CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o ${PACKAGES_DIR}/wanguard_exporter-${EXPORTER_VERSION}-windows