From dc9b86e78334bd6d981a548e8a2a25014746c4ba Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Thu, 10 Sep 2026 09:53:09 +0000 Subject: [PATCH] fix: path normalisation in watcher --- watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.go b/watch.go index 1a0dbee0c7..80c08258d4 100644 --- a/watch.go +++ b/watch.go @@ -101,7 +101,7 @@ func (e *Executor) watchTasks(calls ...*Call) error { return } - if !event.Has(fsnotify.Remove) && !slices.Contains(files, event.Name) { + if !event.Has(fsnotify.Remove) && !slices.Contains(files, filepath.ToSlash(event.Name)) { relPath, _ := filepath.Rel(baseDir, event.Name) e.Logger.VerboseErrf(logger.Magenta, "task: skipped for file not in sources: %s\n", relPath) return