/// Fetch the distro archive from the internet
Fetch the distro archive from the internet
Fetch the distro archive from the internet
fn fetch_remote_distro(
    version: &Version,
    url: &str,
    staging_path: &Path,
) -> Fallible<Box<dyn Archive>> {
    debug!("Downloading {} from {}", tool_version("yarn", version), url);
    Tarball::fetch(url, staging_path).with_context(download_tool_error(
        tool::Spec::Yarn(VersionSpec::Exact(version.clone())),
        url,
    ))
}
fn fetch_remote_distro ( version : & Version , url : & str , staging_path : & Path , ) -> Fallible < Box < dyn Archive > > { debug ! ( " " tool_version ( " " version ) url ) ; Tarball :: fetch ( url , staging_path ) . with_context ( download_tool_error ( tool :: Spec :: Yarn ( VersionSpec :: Exact ( version . clone ( ) ) ) , url , ) ) }
Fetch the distro archive from the internet
Fetch the distro archive from the internet
version
&Version
url
&str
staging_path
&Path