gunk-dev/the-valley

lock_other.go

source68dab279fa3bmain's published tip history
314 bytes
1//go:build !unix
2
3package main
4
5import "errors"
6
7// lockState refuses where there is no flock: a pass that cannot lock its
8// state directory does not run.
9func 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}