Skip to content

feat: add dependency override option to solver#2090

Merged
baszalmstra merged 1 commit intoconda:mainfrom
Premkumar-2004:issue-586
Feb 27, 2026
Merged

feat: add dependency override option to solver#2090
baszalmstra merged 1 commit intoconda:mainfrom
Premkumar-2004:issue-586

Conversation

@Premkumar-2004
Copy link
Copy Markdown
Contributor

@Premkumar-2004 Premkumar-2004 commented Feb 20, 2026

Description

Added dependency_overrides field to SolverTask that lets you replace dependencies of specific packages during solve.
For example, to force jupyterlab 3.3.* to use python ==3.10:
dependency_overrides: vec![("jupyterlab 3.3.*", "python ==3.10")]
Fixes #586

How Has This Been Tested?

Added 3 tests covering basic override, no-match case, and multiple overrides. All tests pass.

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools:Claude

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.

@Premkumar-2004 Premkumar-2004 changed the title added dependency override option to solver feat: add dependency override option to solver Feb 20, 2026
@Premkumar-2004 Premkumar-2004 force-pushed the issue-586 branch 2 times, most recently from e05e7c6 to c2b8636 Compare February 20, 2026 15:42
Comment thread crates/rattler_solve/src/resolvo/mod.rs Outdated
@baszalmstra baszalmstra merged commit 6630166 into conda:main Feb 27, 2026
18 checks passed
@github-actions github-actions Bot mentioned this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add extra solve options

2 participants