]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify @none effect on dependants modules
authorAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 4 Feb 2019 19:07:46 +0000 (20:07 +0100)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 4 Feb 2019 20:20:15 +0000 (20:20 +0000)
Expand modules documentation to clarify why @none is useful. The
wording is the one suggested by rsc on the issue.

Fixes #26684

Change-Id: I76dc4ff87e50f1dd8536fd9ac1fd938adb29bee3
Reviewed-on: https://go-review.googlesource.com/c/161037
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modget/get.go

index d5f63693124a86d06c07c8cb3030f4d029fc4459..186f42156a2efd2ed2273ab49f718153bcbcf09b 100644 (file)
 // development module, then get will update the required version.
 // Specifying a version earlier than the current required version is valid and
 // downgrades the dependency. The version suffix @none indicates that the
-// dependency should be removed entirely.
+// dependency should be removed entirely, downgrading or removing modules
+// depending on it as needed.
 //
 // Although get defaults to using the latest version of the module containing
 // a named package, it does not use the latest version of that module's
index 2bfe6d3bb23fe2b460212e720bfa70d67924c031..17a0ed45e21b4ed780d763bf03a639e0b0674bd6 100644 (file)
@@ -56,7 +56,8 @@ If a module under consideration is already a dependency of the current
 development module, then get will update the required version.
 Specifying a version earlier than the current required version is valid and
 downgrades the dependency. The version suffix @none indicates that the
-dependency should be removed entirely.
+dependency should be removed entirely, downgrading or removing modules
+depending on it as needed.
 
 Although get defaults to using the latest version of the module containing
 a named package, it does not use the latest version of that module's