diff --git a/src/helm_config.rs b/src/helm_config.rs index 107b65c..a9ba3ab 100644 --- a/src/helm_config.rs +++ b/src/helm_config.rs @@ -12,26 +12,25 @@ pub struct ImageRefs { } impl ImageRefs { - pub fn parse(repo: &Repository, diff_file: DiffFile) -> Result { + pub fn parse(repo: &Repository, diff_file: &DiffFile) -> Result { let blob_id = diff_file.id(); let blob = repo .find_blob(blob_id) .with_context(|| format!("cannot find Git blob {blob_id}"))?; - Ok(serde_yml::from_slice(blob.content()) - .with_context(|| format!("cannot parse yaml file {:?}", diff_file.path()))?) + serde_yml::from_slice(blob.content()).with_context(|| format!("cannot parse yaml file {:?}", diff_file.path())) } } #[derive(Debug, Serialize, Deserialize)] pub struct ImageRef { - pub account: String, + pub account: String, pub repository: String, - pub tag: String, - pub sources: Vec, + pub tag: String, + pub sources: Vec, } #[derive(Debug, Serialize, Deserialize)] pub struct SourceRepoRef { - pub repo: String, + pub repo: String, pub commit: String, } diff --git a/src/main.rs b/src/main.rs index 0ed893f..6ce7abd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -137,11 +137,11 @@ fn find_values_yaml(workspace: String, base: &str, head: &str) -> Result