-
Notifications
You must be signed in to change notification settings - Fork 1.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
is_wsl returns false negative when using WSL2 #9208
Comments
Any suggestion how we can detect wsl2 then? |
Good question, it seems we're in luck! I just checked, on another machine, running WSL 1: WSL 2: So it seems that |
They even changed to remove the capital letter, to be sure they break as many script as possible, well done. Here they suggest reading
Yes, I think that should be fine until they change it again... I haven't found a formal documented way of doing it, so we can only hope. PR welcome :) |
Fixed by linked PR. |
Describe the bug
#8445 is hitting me again, where Windows EXEs attempt to be wrapped using
mono
. This is caused byis_wsl
using the check:'microsoft' in platform.version().lower()
Which fails on WSL2, as
platform.version()
in my case is#1 SMP Wed Oct 28 23:40:43 UTC 2020
.To Reproduce
Expected behavior
help.exe's default output is printed as meson runs the command, but instead it fails to find
mono
(which I do not have installed)system parameters
Meson: 0.59.1
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
The text was updated successfully, but these errors were encountered: