pub fn codeload_cache_lookup(
url: &str,
commit: &str,
integrity: Option<&str>,
) -> Option<(PathBuf, String)>Expand description
Return the cached codeload extract for (url, commit) without
touching the network. Callers should consult this before
downloading a codeload tarball — once the resolver has populated
the cache during BFS, the install-time materialization should
reuse it instead of paying a second HTTPS round-trip only to have
extract_codeload_tarball short-circuit and discard the bytes.
Mirrors git_shallow_clone’s top-of-function fast path.
Returns None for any input that couldn’t possibly correspond to
a cached entry — invalid URL/commit shapes, abbreviated SHAs, no
resolvable cache root — so callers can chain straight into the
fetch path on None without untangling an Err.