# Go 1.24 tool directive go.mod tools command resolves executable name collision distribution tool

Status: search-observed
Product: Go 1.24
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/go-1-24-tool-directive-go-mod-tools-command-resolves-executable-name-collision-distribution-tool
Machine JSON: https://gitdocs.org/api/fixes/go-1-24-tool-directive-go-mod-tools-command-resolves-executable-name-collision-distribution-tool.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Source may compile under an older edition/toolchain; current edition migration rules and tool metadata are external to the repo's immediate error context.

## Fix

```
Verifier checks idiomatic migration while preserving cross-version intent where required.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- Go 1.24 tool directive go.mod tools command resolves executable name collision distribution tool
- Go 1.24 tool directives go.mod
- site:go.dev/doc/modules tools directive Go
- https://go.dev/ref/mod
- 'tool' in https://go.dev/ref/mod

## Sources

- Go 1.24 release notes: https://go.dev/doc/go1.24
- Official reference opened by Codex: https://go.dev/ref/mod
