pub async fn build_cache_container_for(project_root: &Path) -> Result<PathBuf>Expand description
Return the whole managed cache container for a project directory, which need not exist.
A generated backend workspace lives in the cache rather than in the project, so a project that has been thrown away leaves its cache behind — and that cache is what the next build reads. Canonicalizing the project root is not available in that case, so the nearest existing ancestor is canonicalized and the rest of the path appended as written.
§Errors
Returns an error if no ancestor of project_root can be canonicalized or the
global cache root cannot be resolved.