-
Notifications
You must be signed in to change notification settings - Fork 365
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
win_bash_run #2803
win_bash_run #2803
Conversation
|
||
Available since: `1.54.0 <https://github.com/conan-io/conan/releases/tag/1.54.0>`_ | ||
|
||
When ``True`` it enables running commands in the ``"run"`` scope, to run them inside a bash shell. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do I enable it for an another scope?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
win_bash
is that is used for the other scope ("build")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's not completely clear, maybe we can add some clarification on that for win_bash
and maybe adding here something like this is the equivalent of win_bash
for the run
scope ?
Co-authored-by: SSE4 <tomskside@gmail.com>
@@ -949,8 +949,12 @@ You need to configure how to run the commands with two config variables: | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be with three now
Any command run with ``self.run``, if ``self.win_bash == True`` will run the command inside the specified shell. | ||
Any command run with ``self.run(..., scope="run")`` if ``self.win_bash_run == True`` will run that command inside the shell. | ||
In both cases running explicitly in the bash shell only happens if ``tools.microsoft.bash:active`` is not True, because | ||
when it is True, it means that Conan is already running inside the shell. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this part reads a bit confusing, maybe illustrating with what Conan calls for each case or some example would make this part a bit more clear?
* add #2758 * add tools.scm * take #2800 and some fixes * add anchor to unix_path * take #2802 * take part of #2803 * take #2806 * Update reference/tools/cmake/cmaketoolchain.rst Co-authored-by: Francisco Ramírez <franchuti688@gmail.com> * Update reference/tools/cmake/cmaketoolchain.rst Co-authored-by: Francisco Ramírez <franchuti688@gmail.com> Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>
No description provided.