-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conflicts with pytest and WSL #52
Comments
I'd guess cygwin (and thus the msys Python build) has it's own exe lookup and thus ignores the system directory. Since our bash is always first in our PATH, things shouldn't be a problem independent of pathtype. Not sure if there is anything we can do here, except to suggest users to delete |
@lazka, I did not check whether this is a problem with
Using |
I'd guess any API which calls CreateProcess() internally. But, the question is why would any native Windows app call "bash.exe"? I'd guess that this is a corner case and/or hack in most cases. |
This is the result if |
I guess the only thing we can do here is add a section about bash.exe and tar.exe in the README. |
The WSL's bash.exe is also get confused with a meson build. CI runs System32/bash.exe while calling find_program() with a shell script. Here is the project's meson.build file https://github.com/Genymobile/scrcpy/blob/master/server/meson.build |
I've created msys2/msys2.github.io#334 so we document this at some point. Nothing that needs fixing in setup-msys2, so closing this. |
Recently, GitHub added WSL to the virtual environment used in GitHub Actions (actions/runner-images#1081). As a result,
C:\Windows\System32\bash.exe
is created. This is NOT an issue for users of setup-msys2 with the default path-type or withstrict
. However, it might be conflictive for users of modeinherit
.Moreover, in Python, when
pytest
is used along withcheck_call(['bash',...])
, it is resolved toC:\Windows\System32\bash.exe
and it fails if the user has not explicitly configured WSL before. A workaround is to usewhich
fromshutil
. See actions/runner-images#1081 (comment).Curiously, the problem is found in MINGW terminals only, not in MSYS. See https://github.com/msys2/setup-msys2/runs/892341986. I think it is because https://github.com/msys2/setup-msys2/runs/892341986?check_suite_focus=true#step:6:7 and https://github.com/msys2/setup-msys2/runs/892341966?check_suite_focus=true#step:6:7 (platform
msys
vswin32
)./cc @The-Compiler
The text was updated successfully, but these errors were encountered: