mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-11 16:58:10 +00:00
(#14385) [docs] New hook kb-h075: Override is not allowed
Signed-off-by: Uilian Ries <uilianries@gmail.com> Signed-off-by: Uilian Ries <uilianries@gmail.com>
This commit is contained in:
@@ -471,6 +471,10 @@ Pylint is executed by default over all `conanfile.py` files in ConanCenterIndex
|
||||
|
||||
The legacy content in test_package should not be removed. Instead, rename that folder to `test_v1_package` and create a new `test_package` folder following the [file structure](adding_packages/README.md#recipe-files-structure) related to Conan v2 and v1 compatibility. Also, you can obtain good examples of Conan v2 test packages from the [template packages](package_templates/README.md) folder.
|
||||
|
||||
#### **<a name="KB-H075">#KB-H075</a>: "REQUIREMENT OVERRIDE PARAMETER"**
|
||||
|
||||
The [self.requires()](https://docs.conan.io/en/latest/reference/conanfile/methods.html#requirements) allows to override a dependency version, forcing to use that version imposed by the recipe only. As a side-effect, dependencies can use different versions of the same project at the same package, which may cause unpredicted errors, like ABI incompatibility. For that reason, the `override` parameter is forbidden and should not be used. Instead, all dependencies should align their package versions, even when it's necessary to open more pull requests to update dependency versions.
|
||||
|
||||
## Deprecated errors
|
||||
|
||||
The following errors from the hooks are deprecated and no longer reported:
|
||||
|
Reference in New Issue
Block a user