Skip to content

Commit b5be877

Browse files
committed
cmd/go: clarify @none effect on dependants modules
Expand modules documentation to clarify why @none is useful. The wording is the one suggested by rsc on the issue. Fixes golang#26684 Change-Id: I76dc4ff87e50f1dd8536fd9ac1fd938adb29bee3 Reviewed-on: https://go-review.googlesource.com/c/161037 Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 691a2d4 commit b5be877

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/cmd/go/alldocs.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/modget/get.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ If a module under consideration is already a dependency of the current
5656
development module, then get will update the required version.
5757
Specifying a version earlier than the current required version is valid and
5858
downgrades the dependency. The version suffix @none indicates that the
59-
dependency should be removed entirely.
59+
dependency should be removed entirely, downgrading or removing modules
60+
depending on it as needed.
6061
6162
Although get defaults to using the latest version of the module containing
6263
a named package, it does not use the latest version of that module's

0 commit comments

Comments
 (0)