OS: Windows 10
GO version: go1.24.3 windows/amd64
$env:GOPROXY=direct
Problem:
running htmgo watch gives error upon changes in pages/index.go. Server doesn't reload.
Error:
ERROR error restarting server error="mkdir ./__htmgo/temp-build: Cannot create a file when that file already exists."
Console log:
htmgo watch
Running in watch mode
Starting processes...
Generating CSS...
Starting server...
2025/09/29 00:22:19 INFO Using default port 3000, set PORT environment variable to change it or use AppOpts.Port
2025/09/29 00:22:19 INFO Server started at localhost:3000
2025/09/29 00:22:35 INFO file changed version=b2184f file=pages\index.go
2025/09/29 00:22:37 INFO reloaded in duration=1.4612439s
2025/09/29 00:22:37 ERROR error restarting server error="mkdir ./__htmgo/temp-build: Cannot create a file when that file already exists."