]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add support for mod tools
authorConrad Irwin <conrad.irwin@gmail.com>
Fri, 19 Jul 2024 03:50:15 +0000 (21:50 -0600)
committerMichael Matloob <matloob@golang.org>
Wed, 20 Nov 2024 17:58:35 +0000 (17:58 +0000)
commit5165f54167a404985428cfd87aecc80595af491a
tree989a31395ff64b87c462dc2907f5ab6c38d46571
parent297081eb021d3c66854f21a93462553e518988cc
cmd/go: add support for mod tools

Running `go tool` with no arguments will now list built in tools
followed by module defined tools.

Running `go tool X` where X matches either the full package path,
or the last segment of the package path, of a defined tool will
build the tool to a known location and immediately execute it.

For golang/go#48429

Change-Id: I02249df8dad12fb74aa244002f82a81af20e732f
Reviewed-on: https://go-review.googlesource.com/c/go/+/534817
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/base/tool.go
src/cmd/go/internal/tool/tool.go