Skip to content

Commit a74d45f

Browse files
committed
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
1 parent d70eb3f commit a74d45f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/chunking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl Chunking {
300300
0 => unreachable!(),
301301
1 => Cow::Borrowed(first_name),
302302
2..=5 => {
303-
let r = bin.iter().map(|v| &*v.meta.name).fold(
303+
let r = bin.iter().map(|v| &*v.meta.name).skip(1).fold(
304304
String::from(first_name),
305305
|mut acc, v| {
306306
write!(acc, " and {}", v).unwrap();

0 commit comments

Comments
 (0)