-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/cmd/getgo: uses incorrect "latest" url #42676
Comments
Change https://golang.org/cl/270878 mentions this issue: |
CC @golang/release. |
I agree that switching it to use the https://golang.org/dl/?mode=json API endpoint is the right fix. |
@fmpwizard CL 270878 has some outstanding review comments, once addressed it should be good to submit. Are you able to take a look? |
Hi @dmitshur yes, I'll take care of the comments, it may be a few more days but I'm still planning on addressing them. |
That sounds good, thank you! |
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: