The built binary at the repo root is not ignored #9

Closed
opened 2026-12-02 10:07:45 +00:00 by ceres · 0 comments
Member

Purpose (fix): go build -o lazymartha ./cmd/lazymartha in the repo root leaves an untracked binary there, so the tree is never clean after a build; .gitignore names it, root only, and cmd/lazymartha/ stays tracked.

Raf, 2026-12-02: "add the binary to lazymartha's .gitignore"

What happens

A build at the root writes ./lazymartha, and git status shows it as untracked on every machine that built once.

What changes

One line in .gitignore: /lazymartha, anchored to the root. A bare lazymartha would also match the cmd/lazymartha/ package directory and untrack the source; the leading slash is what keeps the package tracked.

Done when

  • git check-ignore -v lazymartha HITs at the repo root.
  • git check-ignore cmd/lazymartha/main.go MISSes (exit 1).
  • After go build -o lazymartha ./cmd/lazymartha, git status is clean at the root.
  • No other ignore line changes.

Independent of #6 (the crew screen): it waits on nothing.

Purpose (fix): `go build -o lazymartha ./cmd/lazymartha` in the repo root leaves an untracked binary there, so the tree is never clean after a build; `.gitignore` names it, root only, and `cmd/lazymartha/` stays tracked. Raf, 2026-12-02: "add the binary to lazymartha's .gitignore" ## What happens A build at the root writes `./lazymartha`, and `git status` shows it as untracked on every machine that built once. ## What changes One line in `.gitignore`: `/lazymartha`, anchored to the root. A bare `lazymartha` would also match the `cmd/lazymartha/` package directory and untrack the source; the leading slash is what keeps the package tracked. ## Done when - `git check-ignore -v lazymartha` HITs at the repo root. - `git check-ignore cmd/lazymartha/main.go` MISSes (exit 1). - After `go build -o lazymartha ./cmd/lazymartha`, `git status` is clean at the root. - No other ignore line changes. Independent of #6 (the crew screen): it waits on nothing.
ceres closed this issue 2026-12-02 10:16:10 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/lazymartha#9
No description provided.