From e939811c37825fbd3d8cf3f007c7267bfacd2363 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Tue, 15 Sep 2026 15:01:31 +0100 Subject: [PATCH] fix: path normalisation in watcher (#3028) --- watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.go b/watch.go index 1a0dbee0..80c08258 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