The built binary at the repo root is not ignored #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (fix):
go build -o lazymartha ./cmd/lazymarthain the repo root leaves an untracked binary there, so the tree is never clean after a build;.gitignorenames it, root only, andcmd/lazymartha/stays tracked.Raf, 2026-12-02: "add the binary to lazymartha's .gitignore"
What happens
A build at the root writes
./lazymartha, andgit statusshows it as untracked on every machine that built once.What changes
One line in
.gitignore:/lazymartha, anchored to the root. A barelazymarthawould also match thecmd/lazymartha/package directory and untrack the source; the leading slash is what keeps the package tracked.Done when
git check-ignore -v lazymarthaHITs at the repo root.git check-ignore cmd/lazymartha/main.goMISSes (exit 1).go build -o lazymartha ./cmd/lazymartha,git statusis clean at the root.Independent of #6 (the crew screen): it waits on nothing.