Skip to content

Add go.work files to .gitignore#4419

Merged
ilyakuz-db merged 1 commit intomainfrom
go-work-gitignore
Feb 2, 2026
Merged

Add go.work files to .gitignore#4419
ilyakuz-db merged 1 commit intomainfrom
go-work-gitignore

Conversation

@ilyakuz-db
Copy link
Copy Markdown
Contributor

@ilyakuz-db ilyakuz-db commented Feb 2, 2026

Changes

Adding go.work files to the .gitignore, as we don't use monorepos and don't need it in to be tracked.

See example in .gitignore template collection: https://github.com/github/gitignore/blob/main/Go.gitignore#L23

Why

It is convenient when you need to run go run from any directory, e.g. if I have my bundle collection I can do

go work init /Users/ilya/www/cli
go run /Users/ilya/www/cli --version

Without go.work I need to either build the CLI, or configure launch targets in IDE, or put a bundle inside the CLI repo. Using go run is slightly more convenient, especially when using with agents

Tests

@ilyakuz-db ilyakuz-db added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 892754a Feb 2, 2026
18 checks passed
@ilyakuz-db ilyakuz-db deleted the go-work-gitignore branch February 2, 2026 14:24
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.

2 participants