diff options
author | Bryan C. Mills <bcmills@google.com> | 2021-04-30 00:34:54 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2021-04-30 18:14:18 +0000 |
commit | eb71887b99fa656ed627c9c1d41319b9198979c8 (patch) | |
tree | 83b356ef64337854c96b8cc63568786d7d7fb940 /doc | |
parent | c3365ad5f25043d6293f5cec1e71d1526678ac62 (diff) | |
download | go-eb71887b99fa656ed627c9c1d41319b9198979c8.tar.gz go-eb71887b99fa656ed627c9c1d41319b9198979c8.zip |
cmd/go: prune go.mod and go.sum files from vendored dependencies
Fixes #42970
Change-Id: I79246ef7fc16ae05c8e7b40ffb239a61f6415447
Reviewed-on: https://go-review.googlesource.com/c/go/+/315410
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.17.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html index ef1472d90ab..b670d1b149d 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -120,7 +120,7 @@ Do not send CLs removing the interior tags from such phrases. files.) </p> -<h4 id="vendor-go-versions"><code>go</code> versions in <code>vendor/modules.txt</code></h4> +<h4 id="vendor"><code>vendor</code> contents</h4> <p><!-- golang.org/issue/36876 --> If the main module specifies <code>go</code> <code>1.17</code> or higher, @@ -130,6 +130,14 @@ Do not send CLs removing the interior tags from such phrases. version is used when building the module's packages from vendored source code. </p> +<p><!-- golang.org/issue/42970 --> + If the main module specifies <code>go</code> <code>1.17</code> or higher, + <code>go</code> <code>mod</code> <code>vendor</code> now omits <code>go.mod</code> + and <code>go.sum</code> files for vendored dependencies, which can otherwise + interfere with the ability of the <code>go</code> command to identify the correct + module root when invoked within the <code>vendor</code> tree. +</p> + <h2 id="runtime">Runtime</h2> <p> |