From 3a555977fc9db6b51a9198b3d70921d41bc40e2e Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Fri, 24 Sep 2021 13:54:52 -0700 Subject: [PATCH] cmd/go: add release note for 'go get' changes For #43684 Change-Id: I9ce47de82203ec87e7d3683f56e6c6d61ae255f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/352151 Trust: Jay Conrod Run-TryBot: Jay Conrod TryBot-Result: Go Bot Reviewed-by: Bryan C. Mills --- doc/go1.18.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/go1.18.html b/doc/go1.18.html index 63715ef0d6..8a5ba487a9 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -43,6 +43,25 @@ Do not send CLs removing the interior tags from such phrases.

Go command

+

+ go get no longer builds or installs packages in + module-aware mode. go get is now dedicated to + adjusting dependencies in go.mod. Effectively, the + -d flag is always enabled. To install the latest version + of an executable outside the context of the current module, use + go + install example.com/cmd@latest. Any + version query + may be used instead of latest. This form of go + install was added in Go 1.16, so projects supporting older + versions may need to provide install instructions for both go + install and go get. go + get now reports an error when used outside a module, since there + is no go.mod file to update. In GOPATH mode (with + GO111MODULE=off), go get still builds + and installs packages, as before. +

+

TODO: complete this section, or delete if not needed