Skip to main content

cache_env

Function cache_env 

Source
pub fn cache_env(
    cache_dir: &Path,
    getenv: impl Fn(&str) -> Option<String>,
) -> BTreeMap<String, String>
Expand description

Compute the env vars that redirect package-manager caches to the shared root. getenv lets callers avoid overriding user-set values.