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.
+ 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