Closed ldrozdz93 closed 1 month ago
Hi @ldrozdz93
Thanks for your feedback.
This is most likely the intended behavior by design, have you had a look to https://docs.conan.io/2/knowledge/faq.html#getting-version-conflicts-even-when-using-version-ranges?
Please have a look, and let us know if there are more questions.
Hi @ldrozdz93
Did you manage to have a look to that FAQ? Any further question?
Thanks, I've understood the problem and just reordered the requirements :) You can close this issue
Thanks very much for your feedback! :)
Describe the bug
Environment details: any profile. Conan version
2.7.0
.Context
My package requires
"libmysqlclient/8.1.0"
and"lz4/[^1.9]"
, so forlz4
bothv1.9.4
andv1.10.0
are allowed. The"libmysqlclient/8.1.0"
package requires"lz4/1.9.4"
, so onlyv1.9.4
is allowed.lz4/1.10.0
is in the local cache.Expected behaviour
Given that both my package and
libmysqlclient
agree onlz4/1.9.4
, then it should be used, regardless of the cache content.Actual Behaviour
A version conflict is reported if
lz4/1.10.0
exists in the local cache, as if my package requiredv.10.0
instead of just allowing it. If I removelz4/1.10.0
from the local cache, then the versions are resolved without errors. Cache content influences the version resolution.In symbolic terms
If
A
requiresB
A
requiresC/[>=x]
B
requiresC/x
C/x
should have been used.How to reproduce it