Skip to content

Commit

Permalink
Show resolver hints for packages with markers
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 14, 2025
1 parent d8b5e7e commit 3237912
Show file tree
Hide file tree
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
Expand Up @@ -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)]
Expand Down
Loading

0 comments on commit 3237912

Please sign in to comment.