From: Bryan C. Mills Date: Tue, 17 Dec 2019 19:41:45 +0000 (-0500) Subject: doc/go1.14: document changes to -mod=readonly and go.mod file maintenance X-Git-Tag: go1.14rc1~229 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0377f061687771eddfe8de78d6c40e17d6b21a39;p=gostls13.git doc/go1.14: document changes to -mod=readonly and go.mod file maintenance Fixes #36169 Change-Id: Ib9a53fdb0112635b53be38d6818834dd1775e70c Reviewed-on: https://go-review.googlesource.com/c/go/+/211698 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Jay Conrod --- diff --git a/doc/go1.14.html b/doc/go1.14.html index 7a5aff574a..e7cd533908 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -124,6 +124,11 @@ TODO caused the build to fail.

+

+ -mod=readonly is now set by default when the go.mod + file is read-only and no top-level vendor directory is present. +

+

-modcacherw is a new flag that instructs the go command to leave newly-created directories in the module cache at their @@ -159,6 +164,30 @@ TODO include them if reported by a proxy.

+ +

go.mod file maintenance

+ + +

+ go commands other than + go mod tidy no longer + remove a require directive that specifies a version of an indirect dependency + that is already implied by other (transitive) dependencies of the main + module. +

+ +

+ go commands other than + go mod tidy no longer + edit the go.mod file if the changes are only cosmetic. +

+ +

+ When -mod=readonly is set, go commands will no + longer fail due to a missing go directive or erroneous + // indirect comment. +

+

Module downloading