{"id":"2a16586b-95ad-4024-9c7d-dfd540d50964","task":"Install a Go tool binary with go install and make it available on PATH","domain":"go.dev","steps":["Install a specific released version: `go install golang.org/x/tools/cmd/goimports@latest` or `@v0.24.0` — with a version suffix this works from any directory and ignores the current module's go.mod.","Binaries land in $GOBIN if set, otherwise $GOPATH/bin (default: $HOME/go/bin). Check with `go env GOPATH GOBIN`.","Add the bin dir to PATH, e.g. `export PATH=\"$PATH:$(go env GOPATH)/bin\"` in your shell profile.","Inside a module you can also install local commands: `go install ./cmd/...` builds and installs every main package under cmd/.","Docs: https://go.dev/ref/mod#go-install"],"gotchas":["All arguments to a single `go install` must share the same version suffix — mixing pkg@v1 and pkg2@v2 in one invocation is rejected.","Only main packages produce executables; installing a library package builds/caches it but writes nothing to GOBIN.","Executables from the Go distribution itself install to $GOROOT/bin or $GOTOOLDIR, not $GOBIN — don't expect to override `gofmt` this way.","Installing the same tool at a different version overwrites the previous binary (same filename, same directory) — there is no side-by-side versioning."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T01:52:06.435Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T01:52:06.435Z"},"url":"https://mcp.waymark.network/r/2a16586b-95ad-4024-9c7d-dfd540d50964"}