From baf1daff614bcee4fe108b3b1928d632173e90e4 Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 23 Apr 2026 00:25:41 +0700 Subject: [PATCH] chore(gitignore): untrack inspect dist/index.html build artifact index.html is regenerated by vite on every build with a new content hash, making it permanently dirty. Only .gitkeep is needed for //go:embed to compile on a fresh checkout. Also remove duplicate dist/* line and stale d2 diagram ignore entries. --- .gitignore | 11 ++--------- internal/inspect/dist/index.html | 13 ------------- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 internal/inspect/dist/index.html diff --git a/.gitignore b/.gitignore index a53317d..2afe5ba 100644 --- a/.gitignore +++ b/.gitignore @@ -37,11 +37,10 @@ pkg/spec/dist/ # goreleaser local output /dist/ -# inspect web bundle output (real bundle wired in Stage 4 via Makefile/CI). -# Track only the stub index.html + .gitkeep so //go:embed succeeds. +# inspect web bundle output; built by `make web-build` before go build. +# Only .gitkeep is tracked so //go:embed all:dist compiles on a fresh checkout. /internal/inspect/dist/* !/internal/inspect/dist/.gitkeep -!/internal/inspect/dist/index.html # inspect web frontend inspect-ui/node_modules/ @@ -53,15 +52,9 @@ examples/folio-web/node_modules/ examples/folio-web/dist/ examples/folio-web/.vite/ -# d2 diagrams render into build/site/_assets/diagrams; keep sources only -/docs/_diagrams/*.svg -/docs/_diagrams/*.png - # coding agent files .claude/ .claude/* # Personal research notes /research/ - -internal/inspect/dist/* \ No newline at end of file diff --git a/internal/inspect/dist/index.html b/internal/inspect/dist/index.html deleted file mode 100644 index 7c25179..0000000 --- a/internal/inspect/dist/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - sanderling inspect - - - - -
- -