x/tools/cmd/getgo: uses incorrect "latest" url #42676
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Projects
Milestone
What version of Go are you using (
go version
)?But the golang/tools commit that has this problem is the latest as of today 2020/11/17
9036a0f9af11674fea137b794a0a2e6aef6882e1
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Not relevant but:
go env
OutputWhat did you do?
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer -i
Welcome to the Go installer!
Would you like to install Go? Y/n [Y]: y
The latest go version is go1.15.4, install that? Y/n [Y]:
What did you expect to see?
go1.15.5 being offered
What did you see instead?
go.1.15.4
Possible fix:
this line
https://github.com/golang/tools/blob/master/cmd/getgo/download.go#L24
gets the version that the golang.org site "runs" but at this this time, the site doesn't run the latest. We should instead use:
https://golang.org/dl/?mode=json
Which was suggested on the mailing list
https://groups.google.com/g/golang-nuts/c/kweFo4TE4N0/m/XyH-tI0OBQAJ
The text was updated successfully, but these errors were encountered: