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

Available folders in post_export hook #11643

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Jul 14, 2022

Changelog: Fix: The conanfile.export_folder and conanfile.export_sources_folder are now available in the post_hook().
Docs: omit

@@ -11,33 +11,53 @@

def pre_export(conanfile):
conanfile.output.info("Hello")
# TODO: To have the export_folder here needs a bit more deep refactoring
Copy link
Contributor Author

Choose a reason for hiding this comment

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

How bad is this? how is the pre_export supposed to work? it might need also the export_folder, right?

Copy link
Member

Choose a reason for hiding this comment

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

pre_export hook probably shouldn't have access to the export folders? If it happens before the actual export, those folders are not even created. Maybe pre_export is intended to operate mostly in the user space?

Copy link
Contributor

Choose a reason for hiding this comment

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

why not? I might need to export some files from hook before conan exports from recipe

Copy link
Member

Choose a reason for hiding this comment

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

some ConanCenter example? And some example that cannot be done in the post_hook?

@memsharded memsharded merged commit fed049d into conan-io:develop2 Jul 18, 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.

3 participants