From: Bryan C. Mills
+ -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.
+