//go:build windows package host import ( "errors" "os" ) // lockFileEx refuses on Windows rather than pretending to lock. Restart // passes are root units on a Linux box; the Windows build exists only so the // carlos CLI compiles for workstation use. Refusing is also the SAFE failure // here: lockRestartMarks's caller dispatches nothing when the lock cannot be // taken (restart.go's pass doc), so an unlockable platform cycles no // processes — whereas a no-op lock would claim serialization it does not // provide. func lockFileEx(f *os.File) error { return errors.New("restart-mark locking is box-side (linux) only") } func unlockFile(f *os.File) {}