Add 'osusergo' tag

Avoids warnings like "Using 'getgrouplist' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking"
This commit is contained in:
Bryan Boreham
2021-04-04 11:09:50 +01:00
parent ca9e28e730
commit 1cd32cd3ac

View File

@@ -21,7 +21,7 @@ RM=--rm
RUN_FLAGS=-ti
BUILD_IN_CONTAINER=true
GO_ENV=GOGC=off
GO_BUILD_TAGS='netgo unsafe'
GO_BUILD_TAGS='netgo osusergo unsafe'
GO_BUILD_FLAGS=-mod vendor -ldflags "-extldflags \"-static\" -X main.version=$(SCOPE_VERSION) -s -w" -tags $(GO_BUILD_TAGS)
ifeq ($(GOARCH),arm)