Skip to content

Commit 9cde804

Browse files
committed
cmd/go: document in 'go help mod' that people should use 'go get'
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 <[email protected]>
1 parent a74cc47 commit 9cde804

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/cmd/go/alldocs.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/modcmd/mod.go

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ var CmdMod = &base.Command{
2828
Mod performs module maintenance operations as specified by the
2929
following flags, which may be combined.
3030
31+
Note that support for modules is built into all the go commands,
32+
not just 'go mod'. For example, day-to-day adding, removing, upgrading,
33+
and downgrading of dependencies should be done using 'go get'.
34+
See 'go help modules' for an overview of module functionality.
35+
3136
The -v flag enables additional output about operations performed.
3237
3338
The first group of operations provide low-level editing operations

0 commit comments

Comments
 (0)