Skip to content

fix: restore frontend/dist/.keep so a fresh clone builds - #23

Merged
yujiezhang-ops merged 1 commit into
mainfrom
fix/restore-dist-keep
Aug 5, 2026
Merged

fix: restore frontend/dist/.keep so a fresh clone builds#23
yujiezhang-ops merged 1 commit into
mainfrom
fix/restore-dist-keep

Conversation

@yujiezhang-ops

Copy link
Copy Markdown
Collaborator

main is red. Run 30967236883 fails at go vet ./... with:

manifest_embed.go:18:12: pattern all:frontend/dist: no matching files found

d876a7c (pushed straight to main, so no PR gated it) deleted frontend/dist/.keep. manifest_embed.go:18 embeds all:frontend/dist, and that pattern has no match when the directory does not exist — so any clean checkout fails to vet, build, or test.

Reproduced from a fresh clone before and after: go vet ./... fails on main, passes on this branch.

Why this keeps happening

Fourth time this file has gone missing. vite build empties dist/, so a git add -A afterwards stages the deletion, and the diff line reads as an empty file with no obvious consequence.

.gitignore already has the !frontend/dist/.keep exception plus a comment explaining this exact failure, so nothing more is needed beyond putting the file back. No new gate either: CI already catches it, which is how main went red. The gap was pushing to main without a PR, not a missing check.

Verification

fresh clone + go vet ./...   passes (fails on main)
go test -race ./...          14 packages ok
pnpm run test                145 passed (23 files)
python3 scripts/check-docs.py ok: 46 files

🤖 Generated with Claude Code

d876a7c deleted it, which breaks `go vet ./...` on any clean checkout:
manifest_embed.go embeds `all:frontend/dist`, and that pattern has no match when
the directory does not exist. main has been red since that push.

The file is easy to lose because `vite build` empties dist/, so a `git add -A`
afterwards stages the deletion. .gitignore already carries the
`!frontend/dist/.keep` exception and a comment explaining this; nothing else is
needed beyond putting the file back.
@yujiezhang-ops
yujiezhang-ops merged commit 22193bc into main Aug 5, 2026
3 checks passed
@yujiezhang-ops
yujiezhang-ops deleted the fix/restore-dist-keep branch August 5, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant