The bare `mcables` pattern in .gitignore (line 11) and .dockerignore (line 18) was intended to ignore the built binary at the repo root, but without a leading slash it also matched the cmd/mcables/ directory. The result: cmd/mcables/main.go was never tracked in git, and fresh worktrees had to copy it from a sibling to build. - Change `mcables` → `/mcables` in both files (still ignores the root binary; no longer matches the cmd subdirectory). - Add cmd/mcables/main.go (copied from picasso's worktree, verified identical to head's main checkout). Verified: `git check-ignore cmd/mcables/main.go` returns not-ignored; a touched `./mcables` at the repo root is still ignored via `/mcables`. `go build ./...` clean.
33 lines
453 B
Plaintext
33 lines
453 B
Plaintext
# Source-control + worktree noise
|
|
.git
|
|
.gitignore
|
|
.gitea
|
|
.worktrees
|
|
|
|
# mai worker-local logs
|
|
.m
|
|
|
|
# Local runtime state (mounted as a volume in production)
|
|
data
|
|
*.db
|
|
*.db-wal
|
|
*.db-shm
|
|
|
|
# Build artefacts
|
|
bin
|
|
/mcables
|
|
|
|
# Editor cruft
|
|
.vscode
|
|
.idea
|
|
*.swp
|
|
|
|
# Documentation (lives in git, not in the image)
|
|
docs
|
|
CLAUDE.md
|
|
README.md
|
|
|
|
# Test files (build still respects them via go.mod, this only strips
|
|
# the test fixtures we might check in later)
|
|
**/testdata
|