Skip to content

Commit 023b072

Browse files
author
Tibor Vass
committed
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 <[email protected]>
1 parent b6684a4 commit 023b072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/homedir/homedir_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
// +build !windows,cgo !windows,osusergo
22

33
package homedir // import "github.com/docker/docker/pkg/homedir"
44

0 commit comments

Comments
 (0)