-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix: Wrong bitness information #6485
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Lighthouse Results
|
I thought we already disable x86 when x64 is not supported. But maybe it's because the initial state contains x86? |
In this PR, we prevent x64 Linux users from trying to download the x86 version, but two more issues come to my mind cc @nodejs/nodejs-website
|
I couldn't get the question 🙈 |
If the OS itself doesn't support x86 variants we should already disable prevent the state from reaching that. At least on the UI-side The current bug is more related to the actual link generation |
There's no much we can do. There's so much we can do with automated OS detection. I hope eventually Firefox supports these APIs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hit this today too. Is the ;
after x64
intentional?
Other than that, I definitely approve of this being fixed - and it works for me (TM) - but i the ;
is an error then it should be fixed first.
This is a bit of an edge-case scenario, some examples contain For example, the user agent below; Architecture is As far as I understand from looking at this list, the |
There seemed to be no problem with the current version of link generation 🤔 To make the code more understandable for everyone, I added comments and updated the default values for OS that do not support |
Description
If we cannot get the user's bitness information from the userAgent if
getHighEntropyValues
is not supported, the default is x86.We act as if we are using the architecture, but since the x86 version is not officially distributed for Linux and Mac, users are directed to the wrong links.
This PR aims to create an alternative source to
getHighEntropyValues
by adding more to the conditions we check inuserAgent
.Also, should we do something in the UI for versions that do not have an x86 version? (Maybe disabling the button?) cc @nodejs/nodejs-website
Validation
It would be better to test it on as many operating systems as possible in preview 👀
Related Issues
Fixes #6360
Check List
npx turbo format
to ensure the code follows the style guide.npx turbo test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.