aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthepudds1460 <thepudds1460@gmail.com>2024-12-21 06:36:27 -0500
committerGopher Robot <gobot@golang.org>2024-12-23 06:46:44 -0800
commitabd3201226033fea9947479104d60c2c9ee954c7 (patch)
treeee3f8f8ff729ed8f89988854d2ebfd4e72e54139
parent73152bbfa6fb4f665c3d4736457071dd53c134e3 (diff)
downloadgo-x-website-abd3201226033fea9947479104d60c2c9ee954c7.tar.xz
_content/doc/go1.24: fix meaning of -u in 'go get -u tool'
It's a common misperception that -u is needed more often than it is, perhaps in part due to muscle memory from the GOPATH days. The current release notes suggest that 'go get -u tool' will upgrade all of the current module's tools, but it does more than that -- it will also upgrade all of the direct and indirect non-test dependencies of those tools too. The simplest fix is probably just to remove the -u from this section of the release notes. There are various other details that could be covered, like the -u or -t flags, or that 'go get tool' is a shorthand for 'go get tool@upgrade', but maybe this is sufficient. Updates golang/go#48429 Updates golang/go#68545 Change-Id: I31eeb96dae996a7ffde24d9bae6788d6889e2044 Reviewed-on: https://go-review.googlesource.com/c/website/+/638296 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Conrad Irwin <conrad.irwin@gmail.com>
-rw-r--r--_content/doc/go1.24.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/_content/doc/go1.24.md b/_content/doc/go1.24.md
index ae2f1d5c..432c3bdc 100644
--- a/_content/doc/go1.24.md
+++ b/_content/doc/go1.24.md
@@ -44,7 +44,7 @@ The new `-tool` flag for `go get` causes a tool directive to be added to the
current module for named packages in addition to adding require directives.
The new [`tool` meta-pattern](/cmd/go#hdr-Package_lists_and_patterns) refers to
-all tools in the current module. This can be used to upgrade them all with `go get -u tool` or to install them into your GOBIN directory with `go install tool`.
+all tools in the current module. This can be used to upgrade them all with `go get tool` or to install them into your GOBIN directory with `go install tool`.
<!-- go.dev/issue/69290 -->