]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add support for go get -tool
authorConrad Irwin <conrad.irwin@gmail.com>
Wed, 24 Jul 2024 05:11:10 +0000 (23:11 -0600)
committerMichael Matloob <matloob@golang.org>
Tue, 24 Sep 2024 19:51:22 +0000 (19:51 +0000)
commit68bcef7e9f979b24f42bbddd3400cae97b9de846
treecfe2317aefc115e52784e14b83149890864ef18b
parent03fecda02bf7e2907c608a3a096184a203b967f3
cmd/go: add support for go get -tool

Running `go get -tool example.com/m1` will add a tool line to your mod
file and add any missing dependencies.

Running `go get -tool example.com/m1@none` will drop the tool line from
your mod file.

For golang/go#48429

Change-Id: I07b4776f1f55eff588d08cb6649d94cc42a729d2
Reviewed-on: https://go-review.googlesource.com/c/go/+/563175
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_get_tool.txt [new file with mode: 0644]