Skip to content
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

Merged
merged 2 commits into from
Nov 7, 2022
Merged

win_bash_run #2803

merged 2 commits into from
Nov 7, 2022

Conversation

memsharded
Copy link
Member

No description provided.


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.
Copy link
Contributor

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?

Copy link
Member Author

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")

Copy link
Contributor

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 ?

migrating_to_2.0/recipes.rst Outdated Show resolved Hide resolved
Co-authored-by: SSE4 <tomskside@gmail.com>
@@ -949,8 +949,12 @@ You need to configure how to run the commands with two config variables:

Copy link
Contributor

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

Comment on lines 954 to +957
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.
Copy link
Contributor

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?

@czoido czoido merged commit 8bebc28 into conan-io:develop Nov 7, 2022
@memsharded memsharded deleted the feature/win_bash_run branch November 7, 2022 14:31
czoido added a commit to czoido/docs that referenced this pull request Nov 8, 2022
franramirez688 added a commit that referenced this pull request Nov 10, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants