From f69848f70c61243a28de66e9dab22ac5bcd6ada0 Mon Sep 17 00:00:00 2001 From: epikichi Date: Thu, 6 Oct 2022 12:44:10 -0400 Subject: [PATCH] Adding netgo build tag for linux releases to provide more consistent network behavior. --- .goreleaser.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d42dfd7427..7df4a49685 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -45,6 +45,8 @@ builds: ldflags: # We need to build a static binary because we are building in a glibc based system and running in a musl container -s -w -linkmode external -extldflags "-static" -X 'github.com/0xPolygon/polygon-edge/versioning.Version=v{{ .Version }}' + tags: + - netgo - id: linux-arm64 main: ./main.go @@ -59,12 +61,14 @@ builds: ldflags: # We need to build a static binary because we are building in a glibc based system and running in a musl container -s -w -linkmode external -extldflags "-static" -X 'github.com/0xPolygon/polygon-edge/versioning.Version=v{{ .Version }}' + tags: + - netgo archives: - files: - - LICENSE - - README.md + - LICENSE + - README.md #nfpms: # - vendor: 0xPolygon