Skip to content

cpio: add FromLayers for multi-layer CPIO archives#2216

Draft
a-crate wants to merge 1 commit intochainguard-dev:mainfrom
a-crate:cpio-multiple-layers
Draft

cpio: add FromLayers for multi-layer CPIO archives#2216
a-crate wants to merge 1 commit intochainguard-dev:mainfrom
a-crate:cpio-multiple-layers

Conversation

@a-crate
Copy link
Copy Markdown
Member

@a-crate a-crate commented May 5, 2026

Extract recordsFromLayer helper and add FromLayers function that
converts multiple container layers into a single CPIO archive with
a shared dedup writer.

🤖 Generated with Claude Code

Extract recordsFromLayer helper and add FromLayers function that
converts multiple container layers into a single CPIO archive with
a shared dedup writer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@a-crate a-crate force-pushed the cpio-multiple-layers branch from 179041f to d7ed5d4 Compare May 5, 2026 21:06
@a-crate
Copy link
Copy Markdown
Member Author

a-crate commented May 5, 2026

cpio.FromLayer can't really be called in a reasonable way in succession because it writes the trailer record. Callers would have to call it, drop the trailer record, and then call again. This just gives them a function that makes more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant