Skip to content

Commit abd3201

Browse files
thepuddsgopherbot
authored andcommitted
_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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Conrad Irwin <[email protected]>
1 parent 73152bb commit abd3201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_content/doc/go1.24.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The new `-tool` flag for `go get` causes a tool directive to be added to the
4444
current module for named packages in addition to adding require directives.
4545

4646
The new [`tool` meta-pattern](/cmd/go#hdr-Package_lists_and_patterns) refers to
47-
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`.
47+
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`.
4848

4949
<!-- go.dev/issue/69290 -->
5050

0 commit comments

Comments
 (0)