]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add @latest suffix for go install
authorhopehook <hopehook.com@gmail.com>
Tue, 4 Oct 2022 02:30:55 +0000 (10:30 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 5 Oct 2022 17:44:59 +0000 (17:44 +0000)
Fixes #56014.

Change-Id: I75a3960e092459531de43868750f1684ed2ccb70
Reviewed-on: https://go-review.googlesource.com/c/go/+/437998
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Tim King <taking@google.com>
Run-TryBot: hopehook <hopehook@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>

src/cmd/go/alldocs.go
src/cmd/go/internal/vet/vet.go

index f83a7e261b65e8274c74fe4397eabcce4dd316f1..57d7c4ebf780ff8730c14224500c70b059b95b4d 100644 (file)
 // or additional checks.
 // For example, the 'shadow' analyzer can be built and run using these commands:
 //
-//     go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
+//     go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
 //     go vet -vettool=$(which shadow)
 //
 // The build flags supported by go vet are those that control package resolution
index ee672d1a30d8a058f147a66227b8ec4076be9dd2..e5f8af1c37d82e2e56c33709541c3711b72b1d36 100644 (file)
@@ -42,7 +42,7 @@ The -vettool=prog flag selects a different analysis tool with alternative
 or additional checks.
 For example, the 'shadow' analyzer can be built and run using these commands:
 
-  go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
+  go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
   go vet -vettool=$(which shadow)
 
 The build flags supported by go vet are those that control package resolution