Skip to content

Commit 8ebd9c6

Browse files
authored
fix: Warning about inherit_metadata and UV always displayed (#3438)
Fixes #3434 Signed-off-by: Frost Ming <me@frostming.com>
1 parent 7a64e61 commit 8ebd9c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/3434.bugfix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Eliminate the warning about inherit_metadata when using uv mode.

src/pdm/cli/actions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def resolve_from_lockfile(
203203
strategies = project.lockfile.strategy.copy()
204204
if FLAG_INHERIT_METADATA in strategies and groups is not None and not project.config["use_uv"]:
205205
return locked_repo.evaluate_candidates(groups)
206-
strategies.update((FLAG_STATIC_URLS, FLAG_INHERIT_METADATA))
206+
strategies.add(FLAG_STATIC_URLS)
207207
resolver = project.get_resolver()(
208208
environment=project.environment,
209209
requirements=reqs,

0 commit comments

Comments
 (0)