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

clarify info.clear() behavior #3485

Merged
merged 3 commits into from
Dec 19, 2023
Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded added this to the 2.0.15 milestone Dec 18, 2023
@@ -39,23 +39,22 @@ recipe declares an option ``header_only=True`` or when ``package_type`` is
...

Then, if no ``package_id()`` method is specified in the recipe, Conan will
automatically manage the fPIC setting in the ``package_id`` step like this:
automatically manage it and call ``self.info.clear()`` in the ``package_id()`` automatically,
to make the ``package_id`` independent of settings, options, configuration and requirements.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would change a little bit these lines:

Then, if no ``package_id()`` method is specified in the recipe, Conan
will automatically call ``self.info.clear()`` in the ``package_id()``
to make the ``package_id`` value independent of settings, options, configuration, and requirements.

reference/conanfile/methods/package_id.rst Outdated Show resolved Hide resolved
Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>
@czoido czoido merged commit ab45a38 into conan-io:develop2 Dec 19, 2023
2 checks passed
@memsharded memsharded deleted the fix/info_clear branch December 19, 2023 13:46
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