mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-12 09:46:25 +08:00
e29e57b5fc
configs package can no longer be built on non-Linux OS, such as Darwin. When running `GOOS=darwin go build` on the packge, we had the following errors: ``` ./configs/mount.go:34:16: undefined: unix.MountAttr ./configs/mount.go:47:22: undefined: unix.MS_BIND ``` Let's ensure that the linux specific bits are handled in mount_linux.go, and introduce a _unsupported file, similar to how cgroups file is handled within the package. This'll facilitate utilization of the pkg for other projects that care about Darwin. Signed-off-by: Eric Ernst <eric_ernst@apple.com>
11 lines
122 B
Go
11 lines
122 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package configs
|
|
|
|
type Mount struct{}
|
|
|
|
func (m *Mount) IsBind() bool {
|
|
return false
|
|
}
|