Skip to content

Solving conf_info from BR inherited by consumers' test_package - #12095

Merged
memsharded merged 9 commits into
conan-io:developfrom
lasote:conf_win_bash_test_package
Sep 21, 2022
Merged

memsharded merged 9 commits into
conan-io:developfrom
lasote:conf_win_bash_test_package

Conversation

@lasote

@lasote lasote commented Sep 12, 2022

Copy link
Copy Markdown
Contributor

Changelog: Fix: Fixed a bug when getting the values from the self.conf in the conanfile of a test_package with build_requirements declaring the self.conf_info.
Docs: omit

The issue is in conan 1.x , the test_package conanfile cannot read (loses) the conf inherited from the build requires.
It works for 2.x BUT this is a conan-center-index recipes migration issue so we should provide the fix.

Closes #11975

@lasote lasote added this to the 1.53 milestone Sep 12, 2022

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd say this is looking good, but there are a bunch of tests broken, it is not evident what is happening, should be investigated

@lasote

lasote commented Sep 13, 2022

Copy link
Copy Markdown
Contributor Author

I'd say this is looking good, but there are a bunch of tests broken, it is not evident what is happening, should be investigated

Yes, I saw. I think I shouldn't override the conan_file.conf. attribute but append it, to avoid possible None values being assigned and overwriting the values for the profile. I'll investigate.

@lasote lasote changed the title POC for solving https://github.com/conan-io/conan/issues/11975 Solving conf_info from BR inherited by consumers' test_package Sep 14, 2022
Comment thread conans/test/integration/toolchains/env/test_virtualenv_winbash.py Outdated
Comment thread conans/test/integration/toolchains/env/test_virtualenv_winbash.py Outdated
Comment thread conans/test/integration/toolchains/env/test_virtualenv_winbash.py Outdated
Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>
@memsharded memsharded self-assigned this Sep 21, 2022
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.

[bug] conf_info 'tools.microsoft.bash:subsystem' from msys2 is not used by Autotools in test_package

3 participants