Skip to content

[question] How to handle products that uses same dependency tree with different versions #18045

@Schmeichael

Description

@Schmeichael

What is your question?

Hello!

I need your assistance please.
I will describe my question with a toy example of the issue.

let's say, my team develops product named prod1.
to achieve that it uses 2 dependencies: A and B.
B also depends on A.
so, let's say prod/1.0 depends on A/[>=1.0 <2] and B/[>=1.0 <2] and B/1.0 depends on A/[>=1.0 <2]

now, let's say we develop new product named prod2.
we created several breaking changes on A and therefore we bump major version and create A/2.0 - we will now only deliver bug fixes for A/1.*.*
B had to fix some A's API in order to build and therefore we bump minor version and create B/1.1.
so, the requirements for prod2/1.0 will be A/[>=2.0 <3] and 'B/[>=1.1 <2]'

now, prod2 builds OK. with the latest A and B to support it needs.
but --- prod1 can't be built with 'B/[>=1.0 <2]', because Conan will resolve 'B/[>=1.0 <2]' to B/1.1 and will create conflict with A

  • how should this use case be handled?
  • should we now lower the upper boundary of B, in prod1?

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions