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 switching to the info object, compiler is missing.
Either the 2.0 recipe upgrade documentation is missing information that compiler can't be checked, or that part of information is missing
Environment Details (include every applicable attribute)
Conan version: 1.50
Steps to reproduce (Include if Applicable)
Switch from self.settings.compiler to self.info.settings.compiler in validate step
good example is the cmake recipe
The text was updated successfully, but these errors were encountered:
Hi @sobczyk,
Yes, looks like in Conan 1 package_id() is executed before validate() so if you delete the compiler it fails when you try to check those values. In Conan 2 it does not fail because among other things the package_id() is executed after the validate().
I'll mark this as look-into so we can check the problem and think of the solution for the migration process.
Thanks for reporting.
It seems that it might be possible: #11576, at least tests are not breaking, we need to think further if there could be something not covered by tests.
This will be solved by #11580, which defines a new validate_build() method, that runs before package_id() removes things, so will use self.settings without problem. Will be released in 1.51, testing and feedback once released would be appreciated
When switching to the info object,
compiler
is missing.Either the 2.0 recipe upgrade documentation is missing information that compiler can't be checked, or that part of information is missing
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Switch from
self.settings.compiler
toself.info.settings.compiler
in validate stepgood example is the cmake recipe
The text was updated successfully, but these errors were encountered: