Comments (8)
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 %SYSTEM32%\\bash.exe
if it is a problem.
from setup-msys2.
@lazka, I did not check whether this is a problem with pytest
only, or with any Python script which uses check_call
or other resources from subprocess
.
Not sure if there is anything we can do here, except to suggest users to delete %SYSTEM32%\bash.exe if it is a problem.
Using shutil.which('bash')
instead of 'bash'
solves the issue. If this is reproducible with any Python script that uses subprocess.*
and 'bash'
, I believe we should add a comment in the README. If this is not specific to the virtual environment, but it can be reproduced on any host with MSYS2 and WSL, it might need to be documented somewhere else.
from setup-msys2.
@lazka, I did not check whether this is a problem with
pytest
only, or with any Python script which usescheck_call
or other resources fromsubprocess
.
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.
from setup-msys2.
@lazka, the use case is using pytest in MINGW32/MINGW64 to handle multiple test scripts. Some are makefiles, other are python scripts, other are shell scripts. See c167722. So, it is not a native Windows app, but a multiplatform testsuite composed mainly of a pytest script and shell/bash scripts.
from setup-msys2.
This is the result if bash
is not called:
from setup-msys2.
from setup-msys2.
I guess the only thing we can do here is add a section about bash.exe and tar.exe in the README.
from setup-msys2.
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
from setup-msys2.
Related Issues (20)
- Feature: option for disable caching HOT 5
- "powershell.exe" renamed to "pwsh.exe" HOT 2
- Failed install? HOT 2
- ERROR in dll HOT 8
- Tag releases with semver tag HOT 5
- ctest fails as test-binaries are missing, even though cmake-build of those binaries shows no error HOT 1
- update to node20 HOT 2
- Cache package databases HOT 1
- Get "verified" badge for msys2/setup-msys2 on github marketplace HOT 4
- sometimes action is very slow HOT 11
- Provide alternative for $GITHUB_PATH inside MSYS2 with path-type: minimal HOT 8
- [question] how to move needed binaries (DLL's) to release zip? [SOLVED] HOT 13
- New installer hangs on clangarm64 HOT 12
- Winget Update problem HOT 8
- issue with "location" HOT 2
- Cache restore problem (gzip: Cannot exec) HOT 1
- Add cache-from and cache-to options
- Add possibility to modify BUILDENV in /etc/makepkg.conf using workflow arguments
- Shell not respecting system flag HOT 1
- Help on: pcre2grep: Failed to set locale C.UTF-8 (obtained from LC_CTYPE)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-msys2.