//go:build !linux package host import "os" // The platform self-update is a root oneshot on a Linux box; the macOS and // Windows builds exist only so the carlos CLI compiles for workstation use, // and neither has the syscalls systemapply_unix.go needs — darwin's stdlib // syscall package has no Openat at all. Both primitives refuse rather than // pretend: an apply that cannot lock, or that cannot open a path without // following symlinks, must do nothing at all — and Run tells this refusal // apart from a lock another apply is holding, so an unsupported platform is // an error rather than a quiet no-op. func openBeneath(root string, parts ...string) (*os.File, error) { return nil, errSystemUnsupported } func flockExclusiveNonblock(f *os.File) error { return errSystemUnsupported }