_content/ref: add extra note for 'go get' build deprecation
For golang/go#43684
Change-Id: Ic72fd0b6d1f4ff3262115e1cdaf028c315dc18f8
Reviewed-on: https://go-review.googlesource.com/c/website/+/329500
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>
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index c101f1d..2e83597 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -1314,7 +1314,9 @@
`go get` supports the following flags:
* The `-d` flag tells `go get` not to build or install packages. When `-d` is
- used, `go get` will only manage dependencies in `go.mod`.
+ used, `go get` will only manage dependencies in `go.mod`. Using `go get`
+ without `-d` to build and install packages is deprecated (as of Go 1.17).
+ In Go 1.18, `-d` will always be enabled.
* The `-u` flag tells `go get` to upgrade modules providing packages
imported directly or indirectly by packages named on the command line.
Each module selected by `-u` will be upgraded to its latest version unless
@@ -1338,7 +1340,7 @@
if there is one.
`go get` is more focused on managing requirements in `go.mod`. The `-d` flag
-is deprecated, and in a future release, it will always be enabled.
+is deprecated, and in Go 1.18, it will always be enabled.
### `go install` {#go-install}