pub fn resolve_cache_dir_with_source( override_dir: Option<PathBuf>, ) -> (Option<PathBuf>, PathSource)
Resolve cache root and report which layer won.