-
Notifications
You must be signed in to change notification settings - Fork 57
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
wrong version returned on windows #86
Comments
As explained in denoland/deno#9862 and in Microsoft documentation, this is because Seems like RtlGetVersion might do the trick instead, I'll try this one out |
Thanks. I have no windows devices to do this test, please raise a pr if you could fix it. |
Summary: Right now, we rely on the sys_info library to get the OS version. However, that functionality is broken for Windows: FillZpp/sys-info-rs#86 Specifically, it produces `6.2.9200` for all versions across Windows: https://fburl.com/scuba/buck2_builds/iq6hsudp This diff swaps the check to use the winver library, which has much better support for fetching the Windows version. Reviewed By: JakobDegen Differential Revision: D56546196
Summary: Right now, we rely on the sys_info library to get the OS version. However, that functionality is broken for Windows: FillZpp/sys-info-rs#86 Specifically, it produces `6.2.9200` for all versions across Windows: https://fburl.com/scuba/buck2_builds/iq6hsudp This diff swaps the check to use the winver library, which has much better support for fetching the Windows version. Reviewed By: JakobDegen Differential Revision: D56546196 fbshipit-source-id: 98d94d70bf92c0965002631e07cbb35d6118eaff
im running Windows 10 pro version 20H2 build 19042.746 but
os_release()
returns version 6.2.9200The text was updated successfully, but these errors were encountered: