From 76a80ff034a4c1801ca9e03576f4e24e2f31f517 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Mon, 17 Feb 2025 19:17:49 +0100 Subject: [PATCH] Add clarifying comment --- internal/glance/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/glance/config.go b/internal/glance/config.go index 88479dc..875ce4f 100644 --- a/internal/glance/config.go +++ b/internal/glance/config.go @@ -295,6 +295,9 @@ func configFilesWatcher( } time.Sleep(100 * time.Millisecond) } + // fsnotify removes the file from the watch list on rename events, + // add it back. + // See https://github.com/fsnotify/fsnotify/issues/214 err := watcher.Add(mainFileAbsPath) if err != nil { onErr(fmt.Errorf("watching file:", err))