Reuse reporting operation in venv (#3755)

This commit is contained in:
Charlie Marsh 2024-05-22 15:43:20 -04:00 committed by GitHub
parent 3a75b50d5b
commit 0efc5d0cab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 37 additions and 42 deletions

View file

@ -42,7 +42,7 @@ mod resolver {
use anyhow::Result;
use once_cell::sync::Lazy;
use distribution_types::{IndexLocations, Requirement, Resolution, SourceDist};
use distribution_types::{CachedDist, IndexLocations, Requirement, Resolution, SourceDist};
use pep508_rs::{MarkerEnvironment, MarkerEnvironmentBuilder};
use platform_tags::{Arch, Os, Platform, Tags};
use uv_cache::Cache;
@ -166,7 +166,11 @@ mod resolver {
panic!("benchmarks should not build source distributions")
}
async fn install<'a>(&'a self, _: &'a Resolution, _: &'a PythonEnvironment) -> Result<()> {
async fn install<'a>(
&'a self,
_: &'a Resolution,
_: &'a PythonEnvironment,
) -> Result<Vec<CachedDist>> {
panic!("benchmarks should not build source distributions")
}