jdx/mise · error · eyre::Report
cached rustc action descriptor does not match the invocation
Error message
cached rustc action descriptor does not match the invocation
What it means
Error "cached rustc action descriptor does not match the invocation" thrown in jdx/mise.
Solutions
- Evict the stale cached action result; it no longer matches the current rustc invocation.
- Rebuild after clearing the local action cache.
When it happens
Trigger: Thrown at src/cache/rustc.rs:308 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@6f52dcdf99 (2026-08-22).
Data as JSON: /api/errors/0937c72890db5359.
Report an issue: GitHub.
Appendix: source
Thrown at src/cache/rustc.rs:308
_ => bail!("cache agent returned an unexpected action lookup response"),
};
if result.version != 1 || result.action != action.digest {
bail!("cached rustc action result has an invalid identity");
}
let metadata_digest = result
.metadata
.ok_or_else(|| eyre::eyre!("cached rustc action result has no metadata"))?;
let output_root_digest = result
.output_root
.ok_or_else(|| eyre::eyre!("cached rustc action result has no output root"))?;
let roots = find_blobs(&[
action.digest.clone(),
metadata_digest.clone(),
output_root_digest.clone(),
])?;
let cached_action = read_verified_blob(&roots[0], &action.digest, "action descriptor")?;
if cached_action != action.bytes {
bail!("cached rustc action descriptor does not match the invocation");
}
let metadata: RustcMetadata =
read_canonical_blob(&roots[1], &metadata_digest, "rustc metadata")?;
if metadata.version != 1 || metadata.kind != "rustc" {
bail!("cached rustc metadata is unsupported");
}
let directory: CacheDirectory =
read_canonical_blob(&roots[2], &output_root_digest, "output directory")?;
let files = validated_outputs(directory, outputs)?;
let cached_outputs = files
.iter()
.map(|(node, destination)| CachedOutput {
path: destination.clone(),
digest: node.digest.clone(),
mode: node.mode,
})
.collect();
let restored_output_files = files.len().try_into().unwrap_or(u64::MAX);View on GitHub (pinned to 6f52dcdf99)