Skip to content

Resolver: project source deduplication policy #439

Description

Currently the storage chosen to obtain a project is decided non-deterministically by pubgrub::resolve. Which source to use has to be a policy decision, and we should consider at least Cargo, uv, pip, Maven, npm and similar to avoid making the same mistakes as e.g. pip.

Simple options:

  • choose a local source where available
  • choose always the first source that is available. Similar to uv.
  • choose a source per-usage: only usages with the same source specified get the same source. E.g. cargo does this.
  • choose any source: effectively what happens currently

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions