Skip to content

Commit

Permalink
Respect markers on URL dependencies in editables
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Mar 4, 2024
1 parent 70143b8 commit 41ec998
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/uv-resolver/src/resolver/urls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ impl Urls {
}

for requirement in &metadata.requires_dist {
if !requirement.evaluate_markers(markers, &[]) {
continue;
}

if let Some(pep508_rs::VersionOrUrl::Url(url)) = &requirement.version_or_url {
if let Some(previous) = urls.insert(requirement.name.clone(), url.clone()) {
if cache_key::CanonicalUrl::new(previous.raw())
Expand Down

0 comments on commit 41ec998

Please sign in to comment.