From 0377f061687771eddfe8de78d6c40e17d6b21a39 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 17 Dec 2019 14:41:45 -0500 Subject: [PATCH] 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 --- doc/go1.14.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/go1.14.html b/doc/go1.14.html index 7a5aff574a7ecb..e7cd53390851e3 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -124,6 +124,11 @@

Flags

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 @@

+incompatible versions

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