Skip to content

Commit

Permalink
Adding netgo build tag for linux releases to provide more consistent (0…
Browse files Browse the repository at this point in the history
…xPolygon#779)

network behavior.
  • Loading branch information
epikichi authored Oct 7, 2022
1 parent e423eed commit 34ec940
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 34ec940

Please sign in to comment.