From 1cd32cd3ac129ed1385a8d558e03d83345efd439 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Sun, 4 Apr 2021 11:09:50 +0100 Subject: [PATCH] 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" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 91aacce9e..525593d2a 100644 --- a/Makefile +++ b/Makefile @@ -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)