Skip to content

Add solve strategy option #4753

@ruben-arts

Description

@ruben-arts

rattler already supports this feature while solving, it's build in this PR: conda/rattler#660

Pixi would benefit from this feature.

On a quick look, I would propose to add it with the following toml addition:

[workspace]
solve-strategy = "highest" # "lowest", "lowest-direct"

[feature.test]
solve-strategy = "lowest-direct" # "lowest", "highest"

This should then also be added to the pixi.lock to make sure the lockfile gets invalidated when you change this.

environments:
  default:
    channels:
    - url: https://prefix.dev/conda-forge/
    solve-strategy: highest # <<<<
    packages:
      linux-64:
      - conda: xxx
      ...

Questions:

  • Should this be target specific?
  • Should this be automatically be translated to the uv resolution-strategy?
  • Should we use resolution-strategy as a name to align with uv?

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationIssue related to configuration of workspace or global behaviorenhancementNew features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions