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

define source_folder in test_package when layout() #12075

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Sep 9, 2022

Changelog: Feature: Define source_folder in test_package when layout() is defined.
Docs: Omit

This is a test, to see if something would be broken

Close #12073

@memsharded memsharded added this to the 1.53 milestone Sep 9, 2022
@memsharded memsharded marked this pull request as ready for review September 12, 2022 00:07
@@ -83,6 +83,7 @@ def deps_install(app, ref_or_path, install_folder, base_folder, graph_info, remo
conanfile.folders.set_base_install(install_folder)
conanfile.folders.set_base_imports(install_folder)
conanfile.folders.set_base_generators(base_folder)
conanfile.folders.set_base_source(base_folder)
Copy link
Contributor

Choose a reason for hiding this comment

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

This would also be assigned when no layout defined. Is that ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so, some test_package like the reported one has:

def generate(self):
    env = Environment()
    env.prepend_path("PKG_CONFIG_PATH", self.source_folder)

Will still want the self.source_folder as argument whether the layout() is defined or not. I was exactly trying to see if this could break something because of this.

cmake_layout(self)

def generate(self):
self.output.info("PKG_CONFIG_PATH {}!".format(os.path.exists(self.source_folder)))
Copy link
Contributor

Choose a reason for hiding this comment

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

how is related the PKG_CONFIG_PATH with this change in the code base?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is just an example, the original reported issue wanted to set-up the PKG_CONFIG_PATH, but it could be any other message.

@memsharded memsharded assigned jcar87 and unassigned lasote Sep 21, 2022
@memsharded memsharded added the bug label Sep 21, 2022
@memsharded memsharded requested a review from czoido September 22, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants