Skip to main content

materialize_hit

Function materialize_hit 

Source
pub fn materialize_hit(
    cache: &TaskCacheConfig,
    workdir: &Path,
    result: &ActionResult,
) -> Result<(String, String, i32)>
Expand description

Materialize a cache hit’s outputs into workdir.

Returns (stdout, stderr, exit_code) reconstructed from the CAS so the caller can build a TaskResult without having executed the task.

§Errors

Propagates any error from the Cas when fetching blobs or restoring output permissions.