You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_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]>
Copy file name to clipboardExpand all lines: _content/doc/go1.24.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The new `-tool` flag for `go get` causes a tool directive to be added to the
44
44
current module for named packages in addition to adding require directives.
45
45
46
46
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`.
0 commit comments