-
Notifications
You must be signed in to change notification settings - Fork 981
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
Available folders in post_export hook #11643
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
Changelog: Fix: The
conanfile.export_folder
andconanfile.export_sources_folder
are now available in thepost_hook()
.Docs: omit