Add polling as a fallback to native filesystem events in server watch

Fixes #8720
Fixes #6849
Fixes #7930
This commit is contained in:
Bjørn Erik Pedersen 2021-07-02 09:54:03 +02:00
parent 0019d60f67
commit 24ce98b6d1
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
8 changed files with 731 additions and 13 deletions

View file

@ -262,7 +262,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
for _, group := range watchGroups {
jww.FEEDBACK.Printf("Watching for changes in %s\n", group)
}
watcher, err := c.newWatcher(watchDirs...)
watcher, err := c.newWatcher(sc.poll, watchDirs...)
if err != nil {
return err
}