Skip to content

Commit

Permalink
Show resolver hints for packages with markers (#10607)
Browse files Browse the repository at this point in the history
## Summary

Closes #10606.
  • Loading branch information
charliermarsh authored Jan 14, 2025
1 parent 325b060 commit a49c3f1
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 120 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 a49c3f1

Please sign in to comment.