From cde92846e227425df8258cafade02497a60e421e Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Mon, 12 Apr 2021 16:37:31 -0400 Subject: [PATCH] doc: add release note for module deprecation Fixes #40357 Change-Id: I876edd7364530b77343ebcdd4032390493f8d031 Reviewed-on: https://go-review.googlesource.com/c/go/+/309549 Trust: Jay Conrod Run-TryBot: Jay Conrod TryBot-Result: Go Bot Reviewed-by: Bryan C. Mills --- doc/go1.17.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/go1.17.html b/doc/go1.17.html index 66078b12a9..ef4086d2a5 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -43,6 +43,21 @@ Do not send CLs removing the interior tags from such phrases.

Go command

+

Modules

+ +

+ Module authors may deprecate a module by adding a + // Deprecated: + comment to go.mod, then tagging a new version. + go get now prints a warning if a module needed to + build packages named on the command line is deprecated. go + list -m -u prints deprecations for all + dependencies (use -f or -json to show the full + message). The go command considers different major versions to + be distinct modules, so this mechanism may be used, for example, to provide + users with migration instructions for a new major version. +

+

go get