Return a structured result from Lock::satisfies (#6119)

## Summary

Gives the caller control over how messages are reported back to the
user. Also merges the index-location validation into the lock, since
we're already iterating over the packages.
This commit is contained in:
Charlie Marsh 2024-08-15 13:19:40 -04:00 committed by GitHub
parent b627c9f5e1
commit 9d514cbbe0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 151 additions and 56 deletions

View file

@ -3,7 +3,7 @@ pub use error::{NoSolutionError, NoSolutionHeader, ResolveError};
pub use exclude_newer::ExcludeNewer;
pub use exclusions::Exclusions;
pub use flat_index::FlatIndex;
pub use lock::{Lock, LockError, ResolverManifest, TreeDisplay};
pub use lock::{Lock, LockError, ResolverManifest, SatisfiesResult, TreeDisplay};
pub use manifest::Manifest;
pub use options::{Options, OptionsBuilder};
pub use preferences::{Preference, PreferenceError, Preferences};