Skip to content

chore: remove tools.go files in favor of go.mod "tool" directive#759

Merged
zeroshade merged 1 commit intoapache:mainfrom
thaJeztah:no_tools
Apr 13, 2026
Merged

chore: remove tools.go files in favor of go.mod "tool" directive#759
zeroshade merged 1 commit intoapache:mainfrom
thaJeztah:no_tools

Conversation

@thaJeztah
Copy link
Copy Markdown
Contributor

This prevents dependencies used for //go:generate from being included as a direct dependency, while preserving the ability to specify the version to use through go.mod (as //indirect dependency if not used elsehwere).

Tools specified in go.mod can be downloaded with go get -tool, e.g.;

go get -tool github.com/klauspost/asmfmt/cmd/asmfmt

Or ran with go tool <name of tool>.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

This prevents dependencies used for `//go:generate` from being included as a
direct dependency, while preserving the ability to specify the version to
use through go.mod (as `//indirect` dependency if not used elsehwere).

Tools specified in go.mod can be downloaded with `go get -tool`, e.g.;

    go get -tool github.com/klauspost/asmfmt/cmd/asmfmt

Or ran with `go tool <name of tool>`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah requested a review from zeroshade as a code owner April 12, 2026 17:20
@zeroshade zeroshade merged commit deed26c into apache:main Apr 13, 2026
40 of 41 checks passed
@thaJeztah thaJeztah deleted the no_tools branch April 16, 2026 07:23
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