| 1 | //go:build !unix |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import "errors" |
| 6 | |
| 7 | // lockState refuses where there is no flock: a pass that cannot lock its |
| 8 | // state directory does not run. |
| 9 | func lockState(dir string) (func(), error) { |
| 10 | return nil, errors.New("the restacker locks its state directory with flock, which this system does not have") |
| 11 | } |