WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fba5a6a

Browse files
committed
fix: always perform install-time resolution when use_uv is on
Close #3233 Signed-off-by: Frost Ming <[email protected]>
1 parent edfa314 commit fba5a6a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/3233.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Always perform install-time resolution when `use_uv` is on.

src/pdm/cli/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def resolve_from_lockfile(
200200

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

0 commit comments

Comments
 (0)