Skip to content

Commit

Permalink
build: set osusergo build tag by default
Browse files Browse the repository at this point in the history
This PR activates the osuergo build tag in GNUMakefile. This forces the os/user
package to be compiled without CGO. Doing so seems to resolve a race condition
in getpwnam_r that causes alloc creation to hang or panic on `user.Lookup("nobody")`.
  • Loading branch information
shoenig committed Aug 23, 2022
1 parent e4e445e commit 1bf157b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ifndef BIN
BIN := $(GOPATH)/bin
endif

GO_TAGS ?=
GO_TAGS ?= osusergo

ifeq ($(CI),true)
GO_TAGS := codegen_generated $(GO_TAGS)
Expand Down

0 comments on commit 1bf157b

Please sign in to comment.