Skip to content

Commit 86bbf4b

Browse files
author
Jay Conrod
committed
cmd/go: fix godoc formatting for text from 'go help install'
Fixes #44846 Change-Id: I5a12c6437a91ce59307483ffcc70e084edc32197 Reviewed-on: https://go-review.googlesource.com/c/go/+/301329 Trust: Jay Conrod <[email protected]> Run-TryBot: Jay Conrod <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 78052f4 commit 86bbf4b

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

src/cmd/go/alldocs.go

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/work/build.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,22 @@ To eliminate ambiguity about which module versions are used in the build, the
482482
arguments must satisfy the following constraints:
483483
484484
- Arguments must be package paths or package patterns (with "..." wildcards).
485-
They must not be standard packages (like fmt), meta-patterns (std, cmd,
486-
all), or relative or absolute file paths.
485+
They must not be standard packages (like fmt), meta-patterns (std, cmd,
486+
all), or relative or absolute file paths.
487+
487488
- All arguments must have the same version suffix. Different queries are not
488-
allowed, even if they refer to the same version.
489+
allowed, even if they refer to the same version.
490+
489491
- All arguments must refer to packages in the same module at the same version.
492+
490493
- No module is considered the "main" module. If the module containing
491-
packages named on the command line has a go.mod file, it must not contain
492-
directives (replace and exclude) that would cause it to be interpreted
493-
differently than if it were the main module. The module must not require
494-
a higher version of itself.
494+
packages named on the command line has a go.mod file, it must not contain
495+
directives (replace and exclude) that would cause it to be interpreted
496+
differently than if it were the main module. The module must not require
497+
a higher version of itself.
498+
495499
- Package path arguments must refer to main packages. Pattern arguments
496-
will only match main packages.
500+
will only match main packages.
497501
498502
If the arguments don't have version suffixes, "go install" may run in
499503
module-aware mode or GOPATH mode, depending on the GO111MODULE environment

0 commit comments

Comments
 (0)