Skip to content

Commit

Permalink
homedir: add cgo or osusergo buildtag constraints for unix
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Tibor Vass committed Sep 26, 2019
1 parent b6684a4 commit 023b072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/homedir/homedir_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,cgo !windows,osusergo

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

Expand Down

0 comments on commit 023b072

Please sign in to comment.