Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show resolver hints for packages with markers
Browse files Browse the repository at this point in the history
charliermarsh committed Jan 14, 2025
1 parent d8b5e7e commit 3237912
Showing 2 changed files with 102 additions and 119 deletions.
5 changes: 5 additions & 0 deletions crates/uv-resolver/src/pubgrub/package.rs
Original file line number Diff line number Diff line change
@@ -273,6 +273,11 @@ impl PubGrubPackage {
PubGrubPackageInner::Marker { .. } => "marker",
}
}

/// Returns a new [`PubGrubPackage`] representing the base package with the given name.
pub(crate) fn base(name: &PackageName) -> Self {
Self::from_package(name.clone(), None, None, MarkerTree::TRUE)
}
}

#[derive(Debug, Copy, Clone, Eq, PartialEq, PartialOrd, Hash, Ord)]
Loading

0 comments on commit 3237912

Please sign in to comment.