Skip to content

proposal: cmd/go: install should list, update, uninstall packages #71351

@willfaught

Description

@willfaught

Proposal Details

$ go install -list
github.com/goreleaser/goreleaser@v1.26.1
github.com/junegunn/fzf@v0.56.0
golang.org/x/tools/cmd/eg@v0.28.0
golang.org/x/tools/cmd/stringer@v0.28.0

$ go install -drop eg # or golang.org/x/tools/cmd/eg

$ go install -update github.com/goreleaser/goreleaser
go: upgraded github.com/goreleaser/goreleaser => v1.26.2

$ go install -update
go: upgraded github.com/junegunn/fzf => v0.57.0
go: upgraded golang.org/x/tools/cmd/stringer => v0.29.0

An @none version also uninstalls programs, like how go get works:

$ go install golang.org/x/tools/cmd/goimports@none

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeProposalToolProposalIssues describing a requested change to a Go tool or command-line program.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions