From 0b071e40195c7f202933d3b3ec3da3b4f40cd472 Mon Sep 17 00:00:00 2001 From: diplozoon Date: Fri, 26 Oct 2018 05:03:15 +0000 Subject: [PATCH] cmd/go: add /v2 to go.mod require example 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 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/cmd/go/alldocs.go | 2 +- src/cmd/go/internal/modload/help.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index b0c10c8531..41f9f84046 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1605,7 +1605,7 @@ // // 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 // diff --git a/src/cmd/go/internal/modload/help.go b/src/cmd/go/internal/modload/help.go index f2f3419724..ddc2a7632f 100644 --- a/src/cmd/go/internal/modload/help.go +++ b/src/cmd/go/internal/modload/help.go @@ -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 -- 2.48.1