You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
uv pip compile --no-deps does not warn about invalid extras #23268
When using uv pip compile with --no-deps, uv does not emit a warning if a requested extra does not exist.
I would expect uv to validate requested extras regardless of whether dependency resolution is disabled.
Steps to reproduce
Without --no-deps:
$ echo pandas[exce] | uv pip compile - --no-color --no-cache --no-progress --no-header --no-strip-extras --no-annotate Resolved 4 packages in 747msnumpy==2.5.5pandas[exce]==3.1.1python-dateutil==4.0.0tzdata==2026.6warning: The package `pandas==3.1.1` does not have an extra named `exce`
Hi, I’d be interested in investigating this. The difference between normal resolution and --no-deps looks well scoped. I’ll first trace where extras validation is skipped in the no-dependencies path and add a regression test; if that confirms the expected behavior, I can submit a focused PR.
Activity
pawangopallavudya-commits commentedon Nov 17, 2026
Hi, I’d be interested in investigating this. The difference between normal resolution and
--no-depslooks well scoped. I’ll first trace where extras validation is skipped in the no-dependencies path and add a regression test; if that confirms the expected behavior, I can submit a focused PR.charliermarsh commentedon Nov 19, 2026
IIRC, this was an intentional decision as we'd otherwise have to fetch metadata for all the listed dependencies: #7127