From 7ae4c0c9cd241ae0c26cea161731cd8f7e4d3feb Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Sat, 19 Oct 2024 22:08:43 +0200 Subject: [PATCH] use -tags netgo Inspired by https://www.arp242.net/static-go.html --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1ffaf4..5aa7777 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ lint: .PHONY: build build: - CGO_ENABLE=0 go build -o ./build/main ./cmd/*.go + CGO_ENABLE=0 go build -tags netgo -o ./build/main ./cmd/*.go .PHONY: run run: