Skip to content

chore: ignore Go build artifacts in source dirs - #31

Merged
dnahilman merged 1 commit into
mainfrom
chore/gitignore-go-binaries
May 26, 2026
Merged

chore: ignore Go build artifacts in source dirs#31
dnahilman merged 1 commit into
mainfrom
chore/gitignore-go-binaries

Conversation

@dnahilman

Copy link
Copy Markdown
Owner

Summary

go build inside cmd/goten/ or examples/basic/ produces a binary at the package's path (goten.exe / basic.exe on Windows, no extension on Unix). These were showing up as untracked files in git status after every build.

Changes

  • Added *.exe, *.exe~, *.dll, *.so, *.dylib globally.
  • Pinned /cmd/goten/goten and /examples/basic/basic for the unextensioned Unix variants.

Test plan

  • git status is now clean after go build from cmd/goten/ and examples/basic/.

🤖 Generated with Claude Code

`go build` inside cmd/goten/ or examples/basic/ leaves a binary at
that package's path (goten.exe / basic.exe on Windows; goten / basic
on Unix). These showed up as untracked files in every `git status`.

Ignore Windows binaries globally via `*.exe`, and pin the unextensioned
Unix names for the two known cmd/example paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dnahilman
dnahilman merged commit 08dab24 into main May 26, 2026
@dnahilman
dnahilman deleted the chore/gitignore-go-binaries branch May 26, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant