From 3a72464068f52d0ca671b9faef93e05bdd8804e6 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 2 Nov 2020 10:25:53 +0100 Subject: [PATCH] Use osusergo build tag for static build We now use the osusergo build tag to not use the glibc functions which occur in the warnings but them from golang the os/user package. Signed-off-by: Sascha Grunert --- nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index 56933170..c420f59e 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -44,7 +44,7 @@ let export CFLAGS='-static' export LDFLAGS='-s -w -static-libgcc -static' export EXTRA_LDFLAGS='-s -w -linkmode external -extldflags "-static -lm"' - export BUILDTAGS='static netgo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper' + export BUILDTAGS='static netgo osusergo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper' ''; buildPhase = '' patchShebangs .