Skip to content

New Resolver unable to handle multiple versions of git dependencies #9304

@Tbilgere-td

Description

@Tbilgere-td

What did you want to do?
New Resolver is unable to handle cases where private Git Dependencies are shared but do not match "version" (i.e. Branch, Tag, Commit). This not only makes repo management much more tedious but also makes feature testing in repos much harder or impossible.

For example if we have:

  • a repo with common shared code called common
  • a repo with logic to operate a particular service called service
  • a repo for a app called app

Requirements.txt in service calls:

commoncode @ git+git://github.com/repoOrg/[email protected]

While requirements.txt in app calls:

commoncode @ git+git://github.com/repoOrg/[email protected]
service @ git+git://github.com/repoOrg/[email protected]

Output

ERROR: Cannot install -r requirements.txt (line 70), -r requirements.txt (line 71) and common 1.0.1 (from git+git://github.com/repoOrg/[email protected]) because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested common 1.0.1 (from git+git://github.com/repoOrg/[email protected])
    service 2.1.0 depends on common 1.0.0 (from git+git://github.com/repoOrg/[email protected])

Additional information
I have spent a considerable amount of time reading though available documentation and have not been able to identify a solution for this use case (such as version ranging). Am I missing something? Ideally there would be some way to specify compatible range in service, with concrete versions specified in app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: direct urlDirect URL references (PEP 440, PEP 508, PEP 610)resolution: duplicateDuplicate of an existing issue/PRtype: supportUser Support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions