mirror of
https://github.com/golang/go
synced 2024-11-23 12:40:11 -07:00
cmd/go: add @latest suffix for go install
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>
This commit is contained in:
parent
f63b268b9a
commit
3a37b11281
@ -1814,7 +1814,7 @@
|
|||||||
// or additional checks.
|
// or additional checks.
|
||||||
// For example, the 'shadow' analyzer can be built and run using these commands:
|
// 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)
|
// go vet -vettool=$(which shadow)
|
||||||
//
|
//
|
||||||
// The build flags supported by go vet are those that control package resolution
|
// The build flags supported by go vet are those that control package resolution
|
||||||
|
@ -42,7 +42,7 @@ The -vettool=prog flag selects a different analysis tool with alternative
|
|||||||
or additional checks.
|
or additional checks.
|
||||||
For example, the 'shadow' analyzer can be built and run using these commands:
|
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)
|
go vet -vettool=$(which shadow)
|
||||||
|
|
||||||
The build flags supported by go vet are those that control package resolution
|
The build flags supported by go vet are those that control package resolution
|
||||||
|
Loading…
Reference in New Issue
Block a user