/// Appends the given path and hash to the cache packages manifest, creating the manifest if it
/// was not already staged to be added to the package.
Appends the given path and hash to the cache packages manifest, creating the manifest if it
was not already staged to be added to the package.
Appends the given path and hash to the cache packages manifest creating the manifest if it was not already staged to be added to the package .
pub fn cache_package(mut self, path: PackagePath, hash: Hash) -> Self {
        let pinned_url =
            PinnedPkgUrl::new_package(DEFAULT_PACKAGE_DOMAIN.to_string(), format!("/{path}"), hash)
                .unwrap();
        self.cache_packages.get_or_insert_with(Vec::new).push(pinned_url);
        self
    }
pub fn cache_package ( mut self , path : PackagePath , hash : Hash ) -> Self { let pinned_url = PinnedPkgUrl :: new_package ( DEFAULT_PACKAGE_DOMAIN . to_string ( ) , format ! ( " " ) , hash ) . unwrap ( ) ; self . cache_packages . get_or_insert_with ( Vec :: new ) . push ( pinned_url ) ; self }
Appends the given path and hash to the cache packages manifest, creating the manifest if it
was not already staged to be added to the package.
Appends the given path and hash to the cache packages manifest creating the manifest if it was not already staged to be added to the package .
mut self
path
PackagePath
hash
Hash