From ced0fdbad0655d63d535390b1a7126fd1fef8348 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Fri, 18 Jun 2021 15:07:00 -0700 Subject: [PATCH] doc/go1.17: note deprecation of 'go get' for installing commands Fixes #43684 Change-Id: I8982f6816c002c71e62f37a926c8543e34b8b785 Reviewed-on: https://go-review.googlesource.com/c/go/+/329549 Trust: Jay Conrod Reviewed-by: Bryan C. Mills --- doc/go1.17.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/go1.17.html b/doc/go1.17.html index c9b64da2442..02cd18d0375 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -214,6 +214,16 @@ Do not send CLs removing the interior tags from such phrases. environment for details.

+

+ go get prints a deprecation warning when installing + commands outside the main module (without the -d flag). + go install cmd@version should be used + instead to install a command at a specific version, using a suffix like + @latest or @v1.2.3. In Go 1.18, the -d + flag will always be enabled, and go get will only + be used to change dependencies in go.mod. +

+

go.mod files missing go directives