]> Cypherpunks repositories - gostls13.git/commit
cmd/go: implement 'go install pkg@version'
authorJay Conrod <jayconrod@google.com>
Wed, 2 Sep 2020 17:14:36 +0000 (13:14 -0400)
committerJay Conrod <jayconrod@google.com>
Tue, 15 Sep 2020 12:45:59 +0000 (12:45 +0000)
commite3063636124d0e5b2d0fad7912a9c6810629f486
treec339aa42681b4455f4db8e72bc90ee5c19f6d719
parentea33523877e4c7a136f2db94a8b5bc4e40220be2
cmd/go: implement 'go install pkg@version'

With this change, 'go install' will install executables in module mode
without using or modifying the module in the current directory, if
there is one.

For #40276

Change-Id: I922e71719b3a4e0c779ce7a30429355fc29930bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/254365
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
doc/go1.16.html
src/cmd/go/alldocs.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/mod/example.com_cmd_v1.0.0-exclude.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_cmd_v1.0.0-newerself.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_cmd_v1.0.0-replace.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_cmd_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_cmd_v1.9.0.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_install_pkg_version.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_outside.txt