pub fn resolve_artifact(
model_id: &str,
artifact_dir: Option<&Path>,
index: Option<&Index>,
) -> Result<PathBuf>Expand description
Artifact resolution for a fixture model id, given an optional
artifact directory (flat <id>.zip or cache layout
<id>/*.zip) and the models.yaml index (renames honored).
Directory lookup matches a zip by file stem OR by the id declared
in its metadata.yaml — the renamed-release layout (a zip whose
metadata still carries the pre-rename id, filed under the new id)
resolves under both ids.