Skip to content

Commit

Permalink
_content/ref/mod: document 'go install cmd@version' ignores vendor
Browse files Browse the repository at this point in the history
For golang/go#48332

Change-Id: I3e1b6228ce2ef6c78b851bffb79b48e9ac06aad0
Reviewed-on: https://go-review.googlesource.com/c/website/+/349590
Trust: Jay Conrod <[email protected]>
Run-TryBot: Jay Conrod <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Bryan C. Mills <[email protected]>
  • Loading branch information
passionSeven committed Sep 13, 2021
1 parent a0d883d commit ffc9f69
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions _content/ref/mod.md
Original file line number Diff line number Diff line change
Expand Up @@ -1499,13 +1499,16 @@ arguments must satisfy the following constraints:
* All arguments must have the same version suffix. Different queries are not
allowed, even if they refer to the same version.
* All arguments must refer to packages in the same module at the same version.
* No module is considered the [main module](#glos-main-module). If the module
containing packages named on the command line has a `go.mod` file, it must not
contain directives (`replace` and `exclude`) that would cause it to be
interpreted differently than if it were the main module. The module must not
require a higher version of itself.
* Package path arguments must refer to `main` packages. Pattern arguments
will only match `main` packages.
* No module is considered the [main module](#glos-main-module).
* If the module containing packages named on the command line has a `go.mod`
file, it must not contain directives (`replace` and `exclude`) that would
cause it to be interpreted differently if it were the main module.
* The module must not require a higher version of itself.
* Vendor directories are not used in any module. (Vendor directories are not
included in [module zip files](#zip-files), so `go install` does not
download them.)

See [Version queries](#version-queries) for supported version query syntax.
Go 1.15 and lower did not support using version queries with `go install`.
Expand Down

0 comments on commit ffc9f69

Please sign in to comment.