Skip to content

cmd/go: go help vet suggests "go install .../shadow" without @latest #56014

@mjl-

Description

@mjl-

What version of Go are you using (go version)?

go1.19.1

Does this issue reproduce with the latest release?

yes

What did you do?

$ go1.19.1 help vet
[...]
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 vet -vettool=$(which shadow)

[...]

What did you expect to see?

go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest

What did you see instead?

go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow

It's probably enough to add @latest to https://github.com/golang/go/blob/go1.19.1/src/cmd/go/internal/vet/vet.go#L45
Or rather to https://github.com/golang/go/blob/master/src/cmd/go/internal/vet/vet.go#L45

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions