-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
The resolution stage should not be blocked by the fetch stage. Once we resolve a dependency, we should immediately proceed to resolving its own dependencies. Fetching of packages to the store should happen in parallel.
Currently, resolution is blocked by fetching packages to the store as seen in this function:
pacquet/crates/cli/src/package.rs
Lines 17 to 29 in f66d64c
pub async fn find_package_version_from_registry( | |
tarball_cache: &Cache, | |
config: &'static Npmrc, | |
http_client: &reqwest::Client, | |
name: &str, | |
version: &str, | |
symlink_path: &Path, | |
) -> Result<PackageVersion, PackageManagerError> { | |
let package = Package::fetch_from_registry(name, http_client, &config.registry).await?; | |
let package_version = package.pinned_version(version).unwrap(); | |
internal_fetch(tarball_cache, http_client, package_version, config, symlink_path).await?; | |
Ok(package_version.to_owned()) | |
} |
Metadata
Metadata
Assignees
Labels
No labels