Skip to content

Commit c3b217a

Browse files
author
Jay Conrod
committed
cmd/go: document 'go install cmd@version' ignores vendor directories
For #48332 Change-Id: I708eb3e8f3f386f03210b7117d9ab8b0be2125bb Reviewed-on: https://go-review.googlesource.com/c/go/+/349591 Trust: Jay Conrod <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent ad97d20 commit c3b217a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/cmd/go/alldocs.go

+5-2
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

+5-2
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,17 @@ allowed, even if they refer to the same version.
496496
497497
- All arguments must refer to packages in the same module at the same version.
498498
499+
- Package path arguments must refer to main packages. Pattern arguments
500+
will only match main packages.
501+
499502
- No module is considered the "main" module. If the module containing
500503
packages named on the command line has a go.mod file, it must not contain
501504
directives (replace and exclude) that would cause it to be interpreted
502505
differently than if it were the main module. The module must not require
503506
a higher version of itself.
504507
505-
- Package path arguments must refer to main packages. Pattern arguments
506-
will only match main packages.
508+
- Vendor directories are not used in any module. (Vendor directories are not
509+
included in the module zip files downloaded by 'go install'.)
507510
508511
If the arguments don't have version suffixes, "go install" may run in
509512
module-aware mode or GOPATH mode, depending on the GO111MODULE environment

0 commit comments

Comments
 (0)