all repos — website @ f31f62dc9b2036bddf91dc9f99479773347acfaf

My website

dev: don't rebuild if root files changed
Alan Pearce alan@alanpearce.eu
Fri, 24 Jan 2025 23:55:49 +0100
commit

f31f62dc9b2036bddf91dc9f99479773347acfaf

parent

2418364eca7f80f78717e66b9c1d1d56cd26503a

1 files changed, 0 insertions(+), 4 deletions(-)

jump to
M internal/server/server.gointernal/server/server.go
@@ -164,10 +164,6 @@ dir, 				)
 			}
 		}
-		err = fw.Add(".")
-		if err != nil {
-			return nil, errors.WithMessage(err, "could not add directory to file watcher")
-		}
 		go fw.Start(func(filename string) {
 			log.Info("rebuilding site", "changed_file", filename)
 			err := rebuild(builderConfig, config, log)