[bug] Unhelpful error message about conflicting package versions between requires and build_requires
See original GitHub issueHaving conflicting version overrides for the same package in build_requires and requires results in the following output: ERROR: True
. This makes the error hard to find. The error message should be more helpful on what is going wrong.
#4753 might be related.
Environment Details (include every applicable attribute)
- Operating System+version: Arch Linux Kernel 5.12.12
- Conan version: 1.40.0
- Python version: 3.9.5
Steps to reproduce (Include if Applicable)
Try to conan install
this example conanfile.txt:
[requires]
libdeflate/1.7
[build_requires]
libdeflate/1.8
Logs (Executed commands with output) (Include/Attach if Applicable)
Configuration:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[options]
[build_requires]
[env]
ERROR: True
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
1651701 – DNF module conflict error on dependencies
I have a module with the following definition. Make a note of the build requires section """ --- document: modulemd version: 2 data:...
Read more >Changelog — conan 1.19.3 documentation
Feature: Print nicer error messages when receive an error from Artifactory. ... Docs here; Bugfix: Build-requires expand over the closure of the package...
Read more >58c21cf9d2a5945c2c12b708817... - Oracle Linux Yum Server
let's BuildRequire perl-Test for perl-Satcon - Bumping package versions for ... cobbler anyway - Bug 1077770 - Added error messages and fixed error...
Read more >Bug listing with status UNCONFIRMED as at 2022/12/21 18 ...
Bug :128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils ... Bug:402935 - "emerge bad handle on --exclude with masked packages" ...
Read more >Release notes — conda-build 3.23.3+0.g20b08017.dirty ...
This information is drawn from the GitHub conda project changelog: ... Added the error message when an invalid pip dependency version expression is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No problem, I just wanted to inform you to avoid duplicating effort.
To be fair: I opened the PR, hit a CI problem and decided to document the original problem with a reproducer as this issue afterwards. So the process might have been a bit confusing.