From abd3201226033fea9947479104d60c2c9ee954c7 Mon Sep 17 00:00:00 2001 From: thepudds1460 Date: Sat, 21 Dec 2024 06:36:27 -0500 Subject: [PATCH] _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 Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Conrad Irwin --- _content/doc/go1.24.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_content/doc/go1.24.md b/_content/doc/go1.24.md index ae2f1d5caa..432c3bdcb2 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`.