pub fn read_metadata(work_dir: &Path) -> Result<Metadata, ArtifactError>