build: set osusergo build tag by default (#14248)
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")`.
This commit is contained in:
parent
7ee3de3ea5
commit
cfe9db0f66
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
client: Fixed a bug where user lookups would hang or panic
|
||||||
|
```
|
|
@ -21,7 +21,7 @@ ifndef BIN
|
||||||
BIN := $(GOPATH)/bin
|
BIN := $(GOPATH)/bin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GO_TAGS ?=
|
GO_TAGS ?= osusergo
|
||||||
|
|
||||||
ifeq ($(CI),true)
|
ifeq ($(CI),true)
|
||||||
GO_TAGS := codegen_generated $(GO_TAGS)
|
GO_TAGS := codegen_generated $(GO_TAGS)
|
||||||
|
|
Loading…
Reference in New Issue