diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-08-22 17:01:16 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-08-22 17:01:16 -0400 |
| commit | ba00c7dab8ea982fc3fdbfc7062234adbe1fcc0e (patch) | |
| tree | ebc1f0c9b29ef20ed9941b46f347c39907387627 | |
| parent | 560712f12a496678a703818dd51a1df9bdab77d2 (diff) | |
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 <noreply@anthropic.com>
| -rw-r--r-- | gui/.gitignore | 9 | ||||
| -rw-r--r-- | pim/.gitignore | 11 |
2 files changed, 20 insertions, 0 deletions
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 |
