From dd4a52c2a588c57edc76cb0a414ae6f2e5bf5d52 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Tue, 1 Dec 2020 11:10:40 -0500 Subject: [PATCH] doc/go1.16: add multiple release notes for the go command Added notes for: * go test -c and -i flags used with unknown flags * GO111MODULE=on by default * GOVCS * Dropped requirements on excluded versions Removed TODOs for documentation on the retract directive and 'go install pkg@version'. These pages will be written after the beta. Change-Id: Ic9877a62f908be177a6035a039b72e969e7b7f22 Reviewed-on: https://go-review.googlesource.com/c/go/+/274438 Trust: Jay Conrod Reviewed-by: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot --- doc/go1.16.html | 57 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/doc/go1.16.html b/doc/go1.16.html index 71cd7e259e0..145f920aabc 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -80,17 +80,16 @@ Do not send CLs removing the interior tags from such phrases.

Go command

-

- TODO - - - - - -

-

Modules

+

+ Module-aware mode is enabled by default, regardless of whether a + go.mod file is present in the current working directory or a + parent directory. Specifically, the GO111MODULE environment + variable now defaults to on. To switch to the previous behavior, + set GO111MODULE to auto. +

+

Build commands like go build and go test no longer modify go.mod and go.sum @@ -107,9 +106,7 @@ Do not send CLs removing the interior tags from such phrases. install to build and install packages in module-aware mode, ignoring the go.mod file in the current directory or any parent directory, if there is one. This is useful for installing executables without - affecting the dependencies of the main module.
- TODO: write and link to section in golang.org/ref/mod
- TODO: write and link to blog post + affecting the dependencies of the main module.

@@ -127,8 +124,6 @@ Do not send CLs removing the interior tags from such phrases. to indicate that certain published versions of the module should not be used by other modules. A module author may retract a version after a severe problem is discovered or if the version was published unintentionally.
- TODO: write and link to section in golang.org/ref/mod
- TODO: write and link to tutorial or blog post

@@ -138,6 +133,14 @@ Do not send CLs removing the interior tags from such phrases. resolving missing packages.

+

+ The go command now ignores requirements on module versions + excluded by exclude directives in the main module. Previously, + the go command used the next version higher than an excluded + version, but that version could change over time, resulting in + non-reproducible builds. +

+

go test

@@ -150,6 +153,15 @@ Do not send CLs removing the interior tags from such phrases. that is still considered to be a passing test.

+

+ go test reports an error when the -c + or -i flags are used together with unknown flags. Normally, + unknown flags are passed to tests, but when -c or -i + are used, tests are not run. +

+ +

go get

+

The go get -insecure flag is deprecated and will be removed in a future version. This flag permits @@ -161,8 +173,6 @@ Do not send CLs removing the interior tags from such phrases. See go help environment for details.

-

go get

-

go get example.com/mod@patch now requires that some version of example.com/mod already be @@ -171,6 +181,21 @@ Do not send CLs removing the interior tags from such phrases. to patch even newly-added dependencies.)

+

GOVCS environment variable

+ +

+ GOVCS is a new environment variable that limits which version + control tools the go command may use to download source code. + This mitigates security issues with tools that are typically used in trusted, + authenticated environments. By default, git and hg + may be used to download code from any repository. svn, + bzr, and fossil may only be used to download code + from repositories with module paths or package paths matching patterns in + the GOPRIVATE environment variable. See + go + help vcs for details. +

+

The all pattern