aboutsummaryrefslogtreecommitdiff
path: root/_content/ref
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2021-07-29 13:22:46 -0700
committerJay Conrod <jayconrod@google.com>2021-07-29 20:27:07 +0000
commit55fae94f8c908876d19fc233c744d8e88d8ce9df (patch)
tree0cc3117234bb93e5a3f8b21a0e156487bda8feff /_content/ref
parent6ee2983001bb7d461a5a7cdcacf8ad7050990d0a (diff)
downloadgo-x-website-55fae94f8c908876d19fc233c744d8e88d8ce9df.tar.xz
_content/ref/mod: explain what 'go install' does for non-main packages
Change-Id: Ic4cf4566172af543cf58abc6c701a0c24f1866fe Reviewed-on: https://go-review.googlesource.com/c/website/+/338349 Trust: Jay Conrod <jayconrod@google.com> Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to '_content/ref')
-rw-r--r--_content/ref/mod.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index 06794308..aa896135 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -1487,7 +1487,7 @@ on the command line. Executables (`main` packages) are installed to the
directory named by the `GOBIN` environment variable, which defaults to
`$GOPATH/bin` or `$HOME/go/bin` if the `GOPATH` environment variable is not set.
Executables in `$GOROOT` are installed in `$GOROOT/bin` or `$GOTOOLDIR` instead
-of `$GOBIN`.
+of `$GOBIN`. Non-executable packages are built and cached but not installed.
Since Go 1.16, if the arguments have version suffixes (like `@latest` or
`@v1.0.0`), `go install` builds packages in module-aware mode, ignoring the