Skip to content

Commit

Permalink
fix(build): segfault when resolving user id to name on linux (#1187)
Browse files Browse the repository at this point in the history
fixes #1186

Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian committed Mar 25, 2021
1 parent 435b44e commit 248b2a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Expand Up @@ -18,6 +18,7 @@ builds:
- "{{ .Env.BUILD_FLAGS }}"
ldflags:
- "{{ .Env.LD_FLAGS }}"
- -linkmode=external
- id: akash-darwin-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -34,6 +35,7 @@ builds:
- "{{ .Env.BUILD_FLAGS }}"
ldflags:
- "{{ .Env.LD_FLAGS }}"
- -linkmode=external
- id: akash-linux-amd64
binary: akash
main: ./cmd/akash
Expand All @@ -48,6 +50,7 @@ builds:
ldflags:
- "{{ .Env.LD_FLAGS }}"
- -extldflags "-lc -lrt -lpthread --static"
- -linkmode=external
- id: akash-linux-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -65,6 +68,7 @@ builds:
ldflags:
- "{{ .Env.LD_FLAGS }}"
- -extldflags "-lc -lrt -lpthread --static"
- -linkmode=external
- id: akash-windows-amd64
binary: akash
main: ./cmd/akash
Expand All @@ -82,6 +86,7 @@ builds:
- -buildmode=exe
ldflags:
- "{{ .Env.LD_FLAGS }}"
- -linkmode=external
archives:
- id: akash
builds:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -75,12 +75,12 @@ GIT_HEAD_ABBREV := $(shell git rev-parse --abbrev-ref HEAD)
# export MAINNET=true to set build tag mainnet
ifeq ($(MAINNET),true)
BUILD_MAINNET=mainnet
BUILD_TAGS=netgo,ledger,mainnet
BUILD_TAGS=osusergo,netgo,ledger,mainnet,static_build
GORELEASER_BUILD_TAGS=$(BUILD_TAGS)
GORELEASER_HOMEBREW_NAME=akash
GORELEASER_HOMEBREW_CUSTOM=
else
BUILD_TAGS=netgo,ledger
BUILD_TAGS=osusergo,netgo,ledger,static_build
GORELEASER_BUILD_TAGS=$(BUILD_TAGS),testnet
GORELEASER_HOMEBREW_NAME="akash-edge"
GORELEASER_HOMEBREW_CUSTOM=keg_only :unneeded, \"This is testnet release. Run brew install ovrclk/tap/akash to install mainnet version\"
Expand Down

0 comments on commit 248b2a9

Please sign in to comment.