From d96652d2698371eea8ee8d35fbfb9bb9bd8c17a6 Mon Sep 17 00:00:00 2001 From: SillyZir <269283839+SillyZir@users.noreply.github.com> Date: Tue, 25 Aug 2026 16:51:17 -0400 Subject: [PATCH] fix: Normalize the fsnotify event path with filepath.ToSlash before Refs #2862 --- 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