-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: Incorrect tar instructions for Linux download #41528
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
This comment has been minimized.
This comment has been minimized.
I'm not sure how CI/CD works for different regions for the website, but the next day my fix got approved-merged it had been deployed and I've seen it working. |
NVM, looks like your issue is valid and it's not because of the deployment. |
Change https://golang.org/cl/256318 mentions this issue: |
Created an issue #41537 which is the reason why Linux instructions aren't updating. |
Updated "detectOS" function to use "userAgent" instead of "appVersion". It has more info and using that it can be correctly detected that the user uses Firefox on Linux. Users who want to be incognito can modify these values in their browsers, so there is no workaround for such rare cases. Added "else if" statements to prevent overwriting the variable. Also, added a check that prevents to use "click" on "null" elements (in case if OS haven't been detected or an element doesn't exist in DOM). Fixes golang/go#41537 Fixes golang/go#41528 Change-Id: Iab94801008eddc17c039d49c19c98bef7641afeb GitHub-Last-Rev: 6b891e9 GitHub-Pull-Request: #17 Reviewed-on: https://go-review.googlesource.com/c/website/+/256318 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Steve Traut <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Dmitri Shuralyov <[email protected]>
Updated "detectOS" function to use "userAgent" instead of "appVersion". It has more info and using that it can be correctly detected that the user uses Firefox on Linux. Users who want to be incognito can modify these values in their browsers, so there is no workaround for such rare cases. Added "else if" statements to prevent overwriting the variable. Also, added a check that prevents to use "click" on "null" elements (in case if OS haven't been detected or an element doesn't exist in DOM). Fixes golang/go#41537 Fixes golang/go#41528 Change-Id: Iab94801008eddc17c039d49c19c98bef7641afeb GitHub-Last-Rev: 6b891e9757ec61cd8107f53669f8ed1c0b807294 GitHub-Pull-Request: golang/website#17 Reviewed-on: https://go-review.googlesource.com/c/website/+/256318 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Steve Traut <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Dmitri Shuralyov <[email protected]>
It seems that the code to generate the CLI for the file that was downloaded is wrong and using a possibly hard coded version number.
When a user downloads the file, the instructions should return the instructions to install/unpack the file.
What did you do?
Downloaded Go 1.15.2
https://golang.org/doc/install?download=go1.15.2.linux-amd64.tar.gz
What did you expect to see?
tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz
What did you see instead?
tar -C /usr/local -xzf go1.14.3.linux-amd64.tar.gz
The text was updated successfully, but these errors were encountered: