mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-17 10:53:37 +00:00
Omit URL dependencies from pre-release hints (#4140)
## Summary Closes https://github.com/astral-sh/uv/issues/4127.
This commit is contained in:
parent
7d1b7b99d9
commit
2803a8c475
1 changed files with 7 additions and 2 deletions
|
|
@ -412,8 +412,11 @@ impl PubGrubReportFormatter<'_> {
|
||||||
match derivation_tree {
|
match derivation_tree {
|
||||||
DerivationTree::External(external) => match external {
|
DerivationTree::External(external) => match external {
|
||||||
External::Custom(package, set, _) | External::NoVersions(package, set) => {
|
External::Custom(package, set, _) | External::NoVersions(package, set) => {
|
||||||
if let PubGrubPackageInner::Package { name, .. } = &**package {
|
if let PubGrubPackageInner::Package {
|
||||||
// Check for no versions due to pre-release options
|
name, url: None, ..
|
||||||
|
} = &**package
|
||||||
|
{
|
||||||
|
// Check for no versions due to pre-release options.
|
||||||
if let Some(selector) = selector {
|
if let Some(selector) = selector {
|
||||||
let any_prerelease = set.iter().any(|(start, end)| {
|
let any_prerelease = set.iter().any(|(start, end)| {
|
||||||
let is_pre1 = match start {
|
let is_pre1 = match start {
|
||||||
|
|
@ -455,7 +458,9 @@ impl PubGrubReportFormatter<'_> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if let PubGrubPackageInner::Package { name, .. } = &**package {
|
||||||
// Check for no versions due to no `--find-links` flat index
|
// Check for no versions due to no `--find-links` flat index
|
||||||
if let Some(index_locations) = index_locations {
|
if let Some(index_locations) = index_locations {
|
||||||
let no_find_links =
|
let no_find_links =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue