mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
3
.changelog/14248.txt
Normal file
3
.changelog/14248.txt
Normal file
@@ -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
|
||||
endif
|
||||
|
||||
GO_TAGS ?=
|
||||
GO_TAGS ?= osusergo
|
||||
|
||||
ifeq ($(CI),true)
|
||||
GO_TAGS := codegen_generated $(GO_TAGS)
|
||||
|
||||
Reference in New Issue
Block a user