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.
This commit is contained in:
1 parent
4518385f44
commit
a1d162febf
1 file changed
Vendored
Whitespace-only changes.
Reference in new issue
Block a user