Skip to content

Commit

Permalink
fix: always perform install-time resolution when use_uv is on
Browse files Browse the repository at this point in the history
Close #3233

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Oct 31, 2024
1 parent edfa314 commit fba5a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/3233.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Always perform install-time resolution when `use_uv` is on.
2 changes: 1 addition & 1 deletion src/pdm/cli/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def resolve_from_lockfile(

with ui.logging("install-resolve"):
strategies = project.lockfile.strategy.copy()
if FLAG_INHERIT_METADATA in strategies and groups is not None:
if FLAG_INHERIT_METADATA in strategies and groups is not None and not project.config["use_uv"]:
return locked_repo.evaluate_candidates(groups)
strategies.update((FLAG_STATIC_URLS, FLAG_INHERIT_METADATA))
resolver = project.get_resolver()(
Expand Down

0 comments on commit fba5a6a

Please sign in to comment.