From a1d162febf0af7b904ac29f981f0bd6dcf65523f Mon Sep 17 00:00:00 2001 From: AskaEth Date: Sat, 24 Oct 2026 19:42:58 +0800 Subject: [PATCH] fix(webui): commit dist placeholder so go:embed compiles in clean checkouts internal/webui/webui.go uses //go:embed all:dist, which fails to compile when the directory holds zero files. dist/ is gitignored (it is npm build output), so every fresh clone or worktree could not run go build ./... until the frontend had been built once. Track an empty internal/webui/dist/.gitkeep so the embed always has one matching file. The all: prefix is what makes a dotfile count. Real build output (index.html, assets/**) stays ignored and is never committed. The placeholder is forced into the index because .gitignore's dist/ rule excludes the parent directory with no way to re-include a child. --- internal/webui/dist/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 internal/webui/dist/.gitkeep diff --git a/internal/webui/dist/.gitkeep b/internal/webui/dist/.gitkeep new file mode 100644 index 0000000..e69de29