lazymartha#9: ignore the built binary at the repo root #10

Closed
ceres wants to merge 0 commits from ceres/9-gitignore-binary into main
Member

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

go build -o lazymartha ./cmd/lazymartha leaves an untracked binary at the repo root, so the tree is never clean after a build. One line in .gitignore:

/lazymartha

Anchored to the root on purpose: a bare lazymartha would also match the cmd/lazymartha/ package directory and untrack its source.

Proof, in this worktree:

$ git check-ignore -v lazymartha
.gitignore:14:/lazymartha	lazymartha          # HIT (exit 0)
$ git check-ignore -v cmd/lazymartha/main.go
                                             # no output, exit 1 (MISS)
$ go build -o lazymartha ./cmd/lazymartha && git status --short
 M .gitignore                                # the binary is not listed
$ git status --porcelain --ignored lazymartha
!! lazymartha

It waits on nothing (independent of #6 / PR 8).

Refs #9

Raf, 2026-12-02: "add the binary to lazymartha's .gitignore" `go build -o lazymartha ./cmd/lazymartha` leaves an untracked binary at the repo root, so the tree is never clean after a build. One line in `.gitignore`: ``` /lazymartha ``` Anchored to the root on purpose: a bare `lazymartha` would also match the `cmd/lazymartha/` package directory and untrack its source. **Proof, in this worktree:** ``` $ git check-ignore -v lazymartha .gitignore:14:/lazymartha lazymartha # HIT (exit 0) $ git check-ignore -v cmd/lazymartha/main.go # no output, exit 1 (MISS) $ go build -o lazymartha ./cmd/lazymartha && git status --short M .gitignore # the binary is not listed $ git status --porcelain --ignored lazymartha !! lazymartha ``` It waits on nothing (independent of #6 / PR 8). Refs #9
lazymartha#9: ignore the built binary at the repo root
Some checks failed
test / test (pull_request) Has been cancelled
58085b18de
`go build -o lazymartha ./cmd/lazymartha` leaves an untracked binary at the
root, so the tree is never clean after a build. `/lazymartha` is anchored to
the root on purpose: a bare `lazymartha` would also match the
cmd/lazymartha package directory and untrack its source.

Refs #9
Merge remote-tracking branch 'origin/main' into ceres/9-gitignore-binary
All checks were successful
test / test (pull_request) Successful in 34s
test / test (push) Successful in 31s
19f8aeedc1
Member

Landed by fast-forward: main is 19f8aeedc1 (from 5d669d0d). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is 19f8aeedc177ab274680a3bcd9f38af1352033b4 (from 5d669d0d). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-02 10:15:10 +00:00
All checks were successful
test / test (pull_request) Successful in 34s
test / test (push) Successful in 31s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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!10
No description provided.