-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: download button only knows about macOS and Windows #49765
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
Comments
I can reproduce. How was the new website tested against the old site for regressions? There's also #49754, for example. |
This is not a regression. |
I meant regression as in: new users navigating to golang.org on Linux no longer get a Linux download button by default :) |
Indeed. It's much worse that go.dev has always been like that! |
Change https://golang.org/cl/366976 mentions this issue: |
Change https://golang.org/cl/366975 mentions this issue: |
The go.dev front page download button changes what links to based on JS: if this is a Mac, it links to the darwin/amd64 pkg. Otherwise it links to the windows/amd64 msi. This is obviously wrong on all non-Mac, non-Windows systems, such as Linux, FreeBSD, phones, tablets, and so on. None of them want the Windows MSI. It is also less obviously wrong on all arm64 Mac and Windows systems, of which there will be more and more. Changing whether the button downloads a file or goes to a new page based on browser properties also makes it very difficult to write documentation about how to install Go, since "click Download" does different things for different people. It's also very difficult to tell what architecture the browser is, by design. So our chance of linking to the right download is going to plummet as arm64-based systems proliferate. Instead, just link to the download page and let people find what they need. Fixes golang/go#49765. Change-Id: I0761fddffaef3a36087fd050ae276111339ea2dc Reviewed-on: https://go-review.googlesource.com/c/website/+/366976 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
What is the URL of the page with the issue?
https://go.dev/, for example
What is your user agent?
Screenshot
What did you do?
Clicked the download button on the front page using a Linux machine
What did you expect to see?
A Linux tarball
What did you see instead?
A Windows MSI
Reported on Twitter by @dominikh.
The text was updated successfully, but these errors were encountered: