From 023b072288eab3c9e768d4aeeb917f27f06034c7 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Thu, 26 Sep 2019 21:05:38 +0000 Subject: [PATCH] homedir: add cgo or osusergo buildtag constraints for unix This is to ensure that users of the homedir package cannot compile statically (CGO_ENABLED=0) without also setting the osusergo build tag. Signed-off-by: Tibor Vass --- pkg/homedir/homedir_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/homedir/homedir_unix.go b/pkg/homedir/homedir_unix.go index 284e8be7ca..dcdce40615 100644 --- a/pkg/homedir/homedir_unix.go +++ b/pkg/homedir/homedir_unix.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,cgo !windows,osusergo package homedir // import "github.com/docker/docker/pkg/homedir"