From ba00c7dab8ea982fc3fdbfc7062234adbe1fcc0e Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 22 Aug 2026 17:01:16 -0400 Subject: ignore the binaries go build leaves at the module root "go build ./cmd/x" writes the binary to the current directory, not to bin/, so pim/caldavfs and gui/spike were showing up as new files a stray "git add ." would have committed. Anchored with a leading slash so a source file of the same name deeper in the tree still counts. Co-Authored-By: Claude Opus 5 --- gui/.gitignore | 9 +++++++++ pim/.gitignore | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/gui/.gitignore b/gui/.gitignore index b10d965..7613431 100644 --- a/gui/.gitignore +++ b/gui/.gitignore @@ -1,3 +1,12 @@ # cross-compiled guest binaries *.9 probe/hello-go1.* + +# "go build ./cmd/x" drops the binary in the current directory +/spike +/hello +/text +/cal +cmd/*/spike +cmd/*/hello +cmd/*/text diff --git a/pim/.gitignore b/pim/.gitignore index 28b5357..637cff0 100644 --- a/pim/.gitignore +++ b/pim/.gitignore @@ -1,3 +1,14 @@ +# mk.sh puts binaries here bin/ + +# "go build ./cmd/x" from the module root drops the binary in the +# current directory, not in bin/. Anchored with a leading / so a source +# file of the same name deeper in the tree is still tracked. +/icalfs +/caldavfs +/cal9 + +# and "go build" inside a cmd directory leaves it there cmd/*/icalfs +cmd/*/caldavfs cmd/*/cal9 -- cgit v1.2.3