]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add /v2 to go.mod require example
authordiplozoon <huyuumi.dev@gmail.com>
Fri, 26 Oct 2018 05:03:15 +0000 (05:03 +0000)
committerBryan C. Mills <bcmills@google.com>
Wed, 7 Nov 2018 22:41:12 +0000 (22:41 +0000)
I added /v2 to go.mod require example

Fixes #28374

Change-Id: I74cca374838d106eb79acb9189a02fe9443962c0
Reviewed-on: https://go-review.googlesource.com/c/144917
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/alldocs.go
src/cmd/go/internal/modload/help.go

index b0c10c85312a08973aee5c92f42acca4bf06fbe4..41f9f84046cf3f1a680620bcb5b9d186eaac7cf9 100644 (file)
 //
 //     module my/thing
 //     require other/thing v1.0.2
-//     require new/thing v2.3.4
+//     require new/thing/v2 v2.3.4
 //     exclude old/thing v1.2.3
 //     replace bad/thing v1.4.5 => good/thing v1.4.5
 //
index f2f34197244a4fc33f48751aa2b960ae7c849a4d..ddc2a7632ff16069ec39e3f613a7bb67df0fc319 100644 (file)
@@ -394,7 +394,7 @@ verb followed by arguments. For example:
 
        module my/thing
        require other/thing v1.0.2
-       require new/thing v2.3.4
+       require new/thing/v2 v2.3.4
        exclude old/thing v1.2.3
        replace bad/thing v1.4.5 => good/thing v1.4.5