mirror of https://github.com/docker/compose.git
Merge e2e30ae4c7 into 0dc9852c67
This commit is contained in:
commit
e7e34b7870
|
|
@ -17,15 +17,11 @@
|
||||||
package watch
|
package watch
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"expvar"
|
"expvar"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/tilt-dev/fsnotify"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var numberOfWatches = expvar.NewInt("watch.naive.numberOfWatches")
|
var numberOfWatches = expvar.NewInt("watch.naive.numberOfWatches")
|
||||||
|
|
@ -103,10 +99,6 @@ func DesiredWindowsBufferSize() int {
|
||||||
return defaultBufferSize
|
return defaultBufferSize
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsWindowsShortReadError(err error) bool {
|
|
||||||
return runtime.GOOS == "windows" && !errors.Is(err, fsnotify.ErrEventOverflow)
|
|
||||||
}
|
|
||||||
|
|
||||||
type CompositePathMatcher struct {
|
type CompositePathMatcher struct {
|
||||||
Matchers []PathMatcher
|
Matchers []PathMatcher
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue