Read and replay a manifest file. Relative artifact roots resolve against the manifest's parent directory.
(
path: &Path,
checker: &Path,
context: &EvidenceContext,
node: &CanonicalNode,
)
| 215 | /// Read and replay a manifest file. Relative artifact roots resolve against the |
| 216 | /// manifest's parent directory. |
| 217 | pub fn replay( |
| 218 | path: &Path, |
| 219 | checker: &Path, |
| 220 | context: &EvidenceContext, |
| 221 | node: &CanonicalNode, |
| 222 | ) -> Result<EvidenceReport, EvidenceError> { |
| 223 | let bytes = read_manifest(path)?; |
| 224 | let base = path.parent().unwrap_or_else(|| Path::new(".")); |
| 225 | replay_bytes(&bytes, base, checker, context, node) |
| 226 | } |
| 227 | |
| 228 | /// Replay already-read manifest bytes. The caller supplies the base directory |
| 229 | /// for relative artifact roots so an RPC caller can name the same directory on |