Was the error_on_override setting removed in conan 2.0 because I couldn't find a conan.conf and also nothing about it in the documentation for conan 2.0. Is there a new way to disable/enable it?
1
There are 1 best solutions below
Related Questions in CONAN
- gtest installed with conan: undefined reference to `testing::internal::GetBoolAssertionFailureMessage`
- How to get right values from requirements in Conan recipe to be used as CMake parameters?
- How to build openssl on linux using Conan
- Using Conan (and SVN) as a dependence manager for Matlab projects
- Conan and Cmake: target already exists
- SDL2 Mixer issue: Couldn't launch process
- Packaged build environment as build_requires of profiles, system compiler is used instead
- CONAN ERROR: Conanfile defined package 'name', set_name() redundant
- How to configure Conan to not link in everything possible?
- Conan cannot find package id from new build server
- Select build type at conan build step
- dockerized conan shows FileExistsError: [Errno 17] File exists: './util-linux-2.33.1/tests/expected/libmount/context-X-mount.mkdir'
- Add Qt 5.14.2 with conan package manager using conanfile.txt and bintray as repo only
- Q: conan error: Incorrect 'clang', is not the one detected by CMake: 'GNU' when I use the option "-s build_type=Debug"
- Installing Qt5Svg with Conan
Related Questions in CONAN-2
- How bad is it to use hyphens in a conan package name?
- conan create . fails: ERROR: conanfile didn't specify version
- Conan2 & compiler sanitizers
- Conan2 with Visual Studio 2022: How to install SFML
- Integration of Conan 2 and Qt6
- I am using conan 2.0 integration with cmake to manage my builds for my application but CONAN_INCLUDE_DIRS is not generated
- How to use CMake with Emscripten and Conan 2
- Cmake cannot not find include/lib directories generated by Conan
- PulseAudio error in build methode with conan
- cmake + conan 2.0 + boost with default cmake_exe template not properly injecting dependencies in generated files
- CMake can not find POCO when installed with Conan
- Conan 2.0 use CMake Toolchain generator without CMakeDeps
- SSL: CERTIFICATE_VERIFY_FAILED using Conan 2.0.4 and Python 3.9.13
- How to create conanbuildinfo.cmake file in Conan 2 without --install folder option?
- How to set error_on_override in conan 2.0
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no
error_on_overridein Conan 2.0, because that is now the default, built-in behavior. Overrides will no longer be implicit, so if there is any kind of version conflict upstream in the dependency graph, a "conflict error" is raised. To solve the conflict, then the explicitoverride=True(when there is no direct dependency to that resolved package version) orforce=True(when there is a direct dependency to that version) traits can be used to solve the conflict.Recall that
overrides/forceshould be a temporary workaround to quickly solve such a version conflict. The correct and long term solution would be to fix the conflict in the dependencies, so they all converge to the same versions. This can be easier to maintain if all recipes have the same version range dependencies, for example, all packages agree to depend onrequires = "openssl/[>=3.0 <4.0]", so new versions of openssl are automatically used by all packages, without causing any conflicts.