question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Unhelpful error message about conflicting package versions between requires and build_requires

See original GitHub issue

Having 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
martin-schulze-viresocommented, Sep 20, 2021

No problem, I just wanted to inform you to avoid duplicating effort.

0reactions
martin-schulze-viresocommented, Sep 20, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found