cmd/go: go get tool
upgrades tools instead of just downloading them
#71289
Labels
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Go version
1.24rc1
Output of
go env
in your module/workspace:What did you do?
I had:
golang.org/x/[email protected] had never been downloaded on my computer.
What did you see happen?
It upgraded golang.org/x/tools from v0.26.0 to v0.29.0:
This is inconsistent with go get:
go get -u is meant to upgrade dependencies:
What did you expect to see?
It download the version specified in go.mod, and nothing else:
Then, if I want to upgrade the tool:
This auto-upgrade behavior is going to be a footgun.
The text was updated successfully, but these errors were encountered: