-
Notifications
You must be signed in to change notification settings - Fork 989
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
[bug] self.win_bash and msys2, internal commands not found #12110
Comments
Yes, thanks, #11986 is the one. I see that you closed the issue because of using of msys2 conan center package. But I still think there is a bug in Conan, working with a local msys2 installation should also work. |
Agreed. My proposed solution was making sure the parent directory of the |
I am checking this, and this works:
from conan import ConanFile
class HelloConan(ConanFile):
name = "hello"
version = "0.1"
# Binary configuration
settings = "os", "arch"
win_bash = True
def build(self):
self.run("ar") The |
While testing this PR: #12095
I saw that I couldn't run any command belonging to msys2 (installed packages there) located in
/usr/bin
, but there were tests that work because they use the@pytest.mark.tool_msys2
that is putting theC:/msys64/usr/bin
in the path in theconftest.py
.I think that is very confusing because a recipe trying to run a command like
autoconf
inmsys2
doesn't find it, nevertheless, we have 2 conf to "set up" the environment:tools.microsoft.bash:subsystem
andtools.microsoft.bash:path
. So we could:c:/mysys2/../usr/bin
in the path.PD: I haven't tested it this happens in other subsystems.
PD: This is failing in develop2 too.
The text was updated successfully, but these errors were encountered: