You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling the conan-center hooks with Conan v2 we get the following error:
[HOOK - hook_conan_center.py] pre_export(): ERROR: [SINGLE REQUIRES (KB-H055)] Both 'requires' attribute and 'requirements()' method should not be declared at same recipe. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H055)
However we are not setting the method def requirements() and the attribute self.requires at the same time, we only use the method.
Did something change with Conan V2 that could lead to the self.requires attribute being detected by mistake?
The text was updated successfully, but these errors were encountered:
@Linux13524 sorry, it's not well documented, but we tried to adapt it for Conan v2 and run over Conan Center Index, but not all cases were covered and started to fail for many recipes. It should be broken now, but actually we need to re-model it as many features changed from Conan 1.x to 2.x. I'll open a PR documenting it, because you are not the first one which tried to use Conan center hook and is surprise by an error.
When enabling the conan-center hooks with Conan v2 we get the following error:
However we are not setting the method
def requirements()
and the attributeself.requires
at the same time, we only use the method.Did something change with Conan V2 that could lead to the
self.requires
attribute being detected by mistake?The text was updated successfully, but these errors were encountered: