From a74d45fb3cd836ef510786f79c5515e0ae7379e6 Mon Sep 17 00:00:00 2001 From: RishabhSaini Date: Tue, 2 May 2023 14:15:10 -0400 Subject: [PATCH] chunking: Deduplicate the config history for each layer Fix the the repeated name of the first package in the history of oci config for each oci layer --- lib/src/chunking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/chunking.rs b/lib/src/chunking.rs index 3d41fdf1..605b7d98 100644 --- a/lib/src/chunking.rs +++ b/lib/src/chunking.rs @@ -300,7 +300,7 @@ impl Chunking { 0 => unreachable!(), 1 => Cow::Borrowed(first_name), 2..=5 => { - let r = bin.iter().map(|v| &*v.meta.name).fold( + let r = bin.iter().map(|v| &*v.meta.name).skip(1).fold( String::from(first_name), |mut acc, v| { write!(acc, " and {}", v).unwrap();