Does xmake-repo support package dependency conflict resolution? #3887
-
Does xmake support dependency version conflict resolution like conan? I'm facing a strange issue where the following requires add 2 different fmt libraries to the lock file. Can I disable that? add_requires("fmt 9", "spdlog 1.11", { configs = { fmt_external = true }}) Lock file:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
xmake has a dependency conflict check, if there are no errors reported, there is no conflict. This is because different versions of the same package are allowed to be used for different targets. Only if there are multiple versions of the same package on a dependency link will there be a conflict.
You are currently using a package configuration that does not have any conflicts.
If you want to keep their versions consistent, you can solve that with add_requireconfs as well.
|
Beta Was this translation helpful? Give feedback.
xmake has a dependency conflict check, if there are no errors reported, there is no conflict. This is because different versions of the same package are allowed to be used for different targets.
Only if there are multiple versions of the same package on a dependency link will there be a conflict.
A -> B 1.1 -> C -> B 1.0
You are currently using a package configuration that does not have any conflicts.
If you want to keep their versions consistent, you can solve that with add_requireconfs as well.