Skip to content

Commit

Permalink
Conan: Use recipe revision mode for 'python_requires'
Browse files Browse the repository at this point in the history
By default Conan uses 'minor_mode' policy for 'python_requires'
dependencies. This causes updates in 'qt-conan-common' package not to
land into users when invoking e.g. "$conan instal .. --update".

Fix this by enforcing recipe revision mode so any changes to
'qt-conan-common' recipe is received by the clients when updating
packages.

Pick-to: 6.2
Change-Id: I225965aa76c39552bd4adc93d7e68e0ae0b38d56
Reviewed-by: Toni Saario <[email protected]>
  • Loading branch information
iieklund committed Sep 23, 2021
1 parent 2c2cdb9 commit acaf38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ def package_info(self):
def package_id(self):
# https://docs.conan.io/en/latest/creating_packages/define_abi_compatibility.html
self.info.requires.package_revision_mode()
# Enable 'qt-conan-common' updates on client side with $conan install .. --update
self.info.python_requires.recipe_revision_mode()

# Remove those configure(.bat) options which should not affect package_id.
# These point to local file system paths and in order to re-use pre-built
Expand Down

0 comments on commit acaf38c

Please sign in to comment.