Skip to content

Commit

Permalink
Omit URL dependencies from pre-release hints (#4140)
Browse files Browse the repository at this point in the history
## Summary

Closes #4127.
  • Loading branch information
charliermarsh authored Jun 7, 2024
1 parent 7d1b7b9 commit 2803a8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/uv-resolver/src/pubgrub/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@ impl PubGrubReportFormatter<'_> {
match derivation_tree {
DerivationTree::External(external) => match external {
External::Custom(package, set, _) | External::NoVersions(package, set) => {
if let PubGrubPackageInner::Package { name, .. } = &**package {
// Check for no versions due to pre-release options
if let PubGrubPackageInner::Package {
name, url: None, ..
} = &**package
{
// Check for no versions due to pre-release options.
if let Some(selector) = selector {
let any_prerelease = set.iter().any(|(start, end)| {
let is_pre1 = match start {
Expand Down Expand Up @@ -455,7 +458,9 @@ impl PubGrubReportFormatter<'_> {
}
}
}
}

if let PubGrubPackageInner::Package { name, .. } = &**package {
// Check for no versions due to no `--find-links` flat index
if let Some(index_locations) = index_locations {
let no_find_links =
Expand Down

0 comments on commit 2803a8c

Please sign in to comment.