From 48570b39c5a77a26fffd4966eae1a630a69894b1 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 19 Jul 2018 11:14:59 +0300 Subject: [PATCH] BUILDING.md: add osusergo for static build Go 1.11 includes a fix to os/user to be working in a static binary (fixing https://github.com/golang/go/issues/23265). The fix requires `osusergo` build tag to be set for static binaries, which is what this commit documents. [v2: sort tags alphabetically] Signed-off-by: Kir Kolyshkin --- BUILDING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILDING.md b/BUILDING.md index 33c1b4aee..d36ef0b0a 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -117,7 +117,7 @@ You can build static binaries by providing a few variables to `make`: ```sudo make EXTRA_FLAGS="-buildmode pie" \ EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"' \ - BUILDTAGS="static_build netgo" + BUILDTAGS="netgo osusergo static_build" ``` > *Note*: