Avoid waiting for metadata for --no-deps editables (#3188)

## Summary

We don't emit a request for this, so we shouldn't wait for it either --
we already have the metadata!

Closes https://github.com/astral-sh/uv/issues/3184.
This commit is contained in:
Charlie Marsh 2024-04-22 12:29:19 -04:00 committed by GitHub
parent 725004dcf1
commit a4f125ca34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 1 deletions

View file

@ -864,7 +864,7 @@ impl<
if self.dependency_mode.is_direct() {
// If an extra is provided, wait for the metadata to be available, since it's
// still required for reporting diagnostics.
if extra.is_some() {
if extra.is_some() && self.editables.get(package_name).is_none() {
// Determine the distribution to lookup.
let dist = match url {
Some(url) => PubGrubDistribution::from_url(package_name, url),