conan icon indicating copy to clipboard operation
conan copied to clipboard

Issue with 'automatic' compatible packages and custom package ids

Open harsszegi opened this issue 6 months ago • 6 comments

ISSUE-16785: Issue with 'automatic' compatible packages and custom package ids

In case the recipe uses its own package_id() and compatible packages are generated automatically (e.g. Visual Studio vs msvc), then the compatible packages will use wrong 'base' info set for the compatible package id generation.

In case the recipe's own package_id() erases a few options / settings, the compatible packages will not know about it, as those are generated prior the recipe's package_id() is being called.

The change makes sure that first the recipe's package_id() is called, then the compatible packages are generated, so that they pick up the updated info set.

Changelog: (Bugfix): Automatically generated compatible packages are wrong in case of custom package_id() Docs: Omit

  • [X] Refer to the issue that supports this Pull Request.
  • [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • [x] I've read the Contributing guide.
  • [x] I've followed the PEP8 style guides for Python code.
  • [x] I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

harsszegi avatar Aug 02 '24 17:08 harsszegi