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 <tibor@docker.com>
This commit is contained in:
Tibor Vass 2019-09-26 21:05:38 +00:00
parent b6684a403c
commit 023b072288

View file

@ -1,4 +1,4 @@
// +build !windows
// +build !windows,cgo !windows,osusergo
package homedir // import "github.com/docker/docker/pkg/homedir"