Skip to content

Commit fee02d2

Browse files
cmd/go: clarify go get documentation
Make the documentation for `go get` match the documentation for `go install`, since `go get` essentially invokes `go install`. Update #15825. Change-Id: I374d80efd301814b6d98b86b7a4a68dd09704c92 Reviewed-on: https://go-review.googlesource.com/23925 Reviewed-by: Andrew Gerrand <[email protected]>
1 parent 5f3eb43 commit fee02d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/alldocs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ Usage:
473473
474474
go get [-d] [-f] [-fix] [-insecure] [-t] [-u] [build flags] [packages]
475475
476-
Get downloads and installs the packages named by the import paths,
477-
along with their dependencies.
476+
Get downloads the packages named by the import paths, along with their
477+
dependencies. It then installs the named packages, like 'go install'.
478478
479479
The -d flag instructs get to stop after downloading the packages; that is,
480480
it instructs get not to install the packages.

src/cmd/go/get.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var cmdGet = &Command{
1919
UsageLine: "get [-d] [-f] [-fix] [-insecure] [-t] [-u] [build flags] [packages]",
2020
Short: "download and install packages and dependencies",
2121
Long: `
22-
Get downloads and installs the packages named by the import paths,
23-
along with their dependencies.
22+
Get downloads the packages named by the import paths, along with their
23+
dependencies. It then installs the named packages, like 'go install'.
2424
2525
The -d flag instructs get to stop after downloading the packages; that is,
2626
it instructs get not to install the packages.

0 commit comments

Comments
 (0)