]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document in 'go help mod' that people should use 'go get'
authorRuss Cox <rsc@golang.org>
Wed, 25 Jul 2018 00:02:26 +0000 (20:02 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 28 Jul 2018 01:15:10 +0000 (01:15 +0000)
We're starting to see tutorials that assume
'go mod' is the only module-related command.

Fixes #26597.

Change-Id: I44701f29f89fc67086f96307afbdb4659bb63873
Reviewed-on: https://go-review.googlesource.com/125935
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/mod.go

index ef1a202e29145ad7c34cfab0878e94a32c18ae05..f7dcb1099282f197d5bcc8ad0ecc1d019a4c8403 100644 (file)
 // Mod performs module maintenance operations as specified by the
 // following flags, which may be combined.
 //
+// Note that support for modules is built into all the go commands,
+// not just 'go mod'. For example, day-to-day adding, removing, upgrading,
+// and downgrading of dependencies should be done using 'go get'.
+// See 'go help modules' for an overview of module functionality.
+//
 // The -v flag enables additional output about operations performed.
 //
 // The first group of operations provide low-level editing operations
index f3eef6f8e7ada7b41d02dcbf5fd643c5ff5825d1..e1ebb3bce6d3b33ff197c4a7f48e24d0293a8fac 100644 (file)
@@ -28,6 +28,11 @@ var CmdMod = &base.Command{
 Mod performs module maintenance operations as specified by the
 following flags, which may be combined.
 
+Note that support for modules is built into all the go commands,
+not just 'go mod'. For example, day-to-day adding, removing, upgrading,
+and downgrading of dependencies should be done using 'go get'.
+See 'go help modules' for an overview of module functionality.
+
 The -v flag enables additional output about operations performed.
 
 The first group of operations provide low-level editing operations