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

new win_bash mechanism #9194

Merged
merged 36 commits into from Jul 6, 2021
Merged

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Jul 2, 2021

Changelog: Feature: New self.win_bash mechanism to enable running commands in a bash shell in Windows. It works only with the new environment definition from the dependencies (env_buildinfo and run_buildinfo) as long as the new AutotoolsToolchain, AutotoolsDeps and Autotools build helper. It supports automatic conversion of the environment variables values declared as "path" according to the declared subsystem in the conf tools.win.bash:subsystem, that is not being auto-detected anymore.
Docs: conan-io/docs#2152

Closes #8883
Closes #9068

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look that bad on the surface, indeed a couple of ugly definitions, like propagating the conanfile to _EnvItem, but maybe worth the value of the proposal.

conan/tools/env/__init__.py Outdated Show resolved Hide resolved
conan/tools/microsoft/__init__.py Outdated Show resolved Hide resolved
conan/tools/microsoft/win.py Outdated Show resolved Hide resolved
conan/tools/microsoft/win.py Outdated Show resolved Hide resolved
conan/tools/microsoft/win.py Outdated Show resolved Hide resolved
conans/model/conan_file.py Outdated Show resolved Hide resolved
@lasote lasote marked this pull request as ready for review July 2, 2021 14:08
@lasote
Copy link
Contributor Author

lasote commented Jul 2, 2021

Now it is not passing conanfile to _EnvValue only to needed methods.

@lasote lasote added this to the 1.39 milestone Jul 2, 2021
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some minor comments, but this is looking great, lets discuss those minor things and lets merge it.

conan/tools/env/environment.py Show resolved Hide resolved
conan/tools/microsoft/__init__.py Show resolved Hide resolved
conan/tools/microsoft/subsystems.py Show resolved Hide resolved
conan/tools/microsoft/subsystems.py Outdated Show resolved Hide resolved
conans/test/integration/environment/test_env.py Outdated Show resolved Hide resolved
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, lets merge it!

@memsharded memsharded merged commit 5012375 into conan-io:develop Jul 6, 2021
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.

[feature] win_bash new approach [bug] unix_path() uses WSL path flavor on Windows
2 participants