From 1a31178c01b9fc98e3b77dd8f9fb6ff974104f8d Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Wed, 22 Dec 2021 14:43:00 +0100 Subject: [PATCH] Build using netgo tag This will create a static build using Go native networking stack. Checked and it works stable for all archs and distros. --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 088dcf38c7..331d8de6b5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -49,7 +49,7 @@ builds: tags: - netgo ldflags: - # We need to build a static binary because we are building in a glibc based system and running in a musl container + # We need to build a static binary because we are building in a glibc based system and running in a musl container -s -w -extldflags "-static" - id: linux-arm64 @@ -65,7 +65,7 @@ builds: tags: - netgo ldflags: - # We need to build a static binary because we are building in a glibc based system and running in a musl container + # We need to build a static binary because we are building in a glibc based system and running in a musl container -s -w -extldflags "-static" nfpms: