]> Cypherpunks repositories - gostls13.git/commit
cmd/go: 'go get' no longer builds or installs packages
authorJay Conrod <jayconrod@google.com>
Tue, 14 Sep 2021 23:23:10 +0000 (16:23 -0700)
committerJay Conrod <jayconrod@google.com>
Tue, 28 Sep 2021 17:18:36 +0000 (17:18 +0000)
commitff7b04136091f8208352e97c117ca6489ca95a86
treec8cfad96d6458efc99de4a0f10ed47ccc56dbf55
parente301b2f11c905672eccd418fd581c0432a07ac04
cmd/go: 'go get' no longer builds or installs packages

As part of #40267, 'go install' is now fully responsible for building
and installing executables. 'go get' will only be used to change
versions in go.mod. The -d flag no longer has any effect; its behavior
is the default.

When 'go get' is invoked inside a module on a main package outside of
the main module, it no longer prints any warning. In 1.16-1.17, we
suggested using -d in this situation, but we want
'go get example.com/cmd' to be able to upgrade a tool dependency
without needing -d to suppress the warning.

For #43684

Change-Id: I9daf29c123a5a0e382aa326d62721cb26fc26c19
Reviewed-on: https://go-review.googlesource.com/c/go/+/349997
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/build_trimpath.txt
src/cmd/go/testdata/script/mod_download_svn.txt [moved from src/cmd/go/testdata/script/mod_get_svn.txt with 61% similarity]
src/cmd/go/testdata/script/mod_get_cmd.txt [deleted file]
src/cmd/go/testdata/script/mod_get_commit.txt
src/cmd/go/testdata/script/mod_get_deprecate_install.txt
src/cmd/go/testdata/script/mod_get_errors.txt
src/cmd/go/testdata/script/mod_get_tags.txt
src/cmd/go/testdata/script/mod_outside.txt