You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to have an oras pull option that retrieves a set of files that are part of a source manifest attached to a container image by hash, and creates a single-file complete corresponding source archive.
Concretely, this could take a form like --output-archive sources.zip or --output-archive sources.tar.zst.
Why is this needed for ORAS?
A single-file complete corresponding source archive is a useful download to provide alongside a container image, or a software executable or package.
Given a container that has associated sources for individual packages in it, storing a full archive doesn't let the OCI store deduplicate individual package sources. Storing a source manifest that references all the individual source archives does, but then retrieving it produces a directory full of source archives, rather than a single file. It's easy enough to zip or tar those up, but:
It'd be helpful to have this support built in,
It'd be nice to not have to materialize the files on disk before archiving them, and
If built in, it could carefully provide reproducible archives that always have the same hash given the same inputs.
Are you willing to submit PRs to contribute to this feature?
There are some experimental commands oras backup and oras restore I think that do something like this. They are seriously restricted in their capabilities as I recall though. I haven't messed with them.
I'd like to work on an initial ZIP implementation of --output-archive: walk the selected artifact metadata, validate and order entry names, and stream verified file contents into one reproducible archive without staging extracted files. I plan to cover named blobs, packed directory layers, platform selection and subjects, while keeping ordinary directory output unchanged. Other archive extensions would report an explicit unsupported-format error in this first change. Tests will cover reproducibility, aliases, invalid paths, corrupt content, and output cleanup. AI tools will assist with the implementation and tests.
Activity
TerryHowe commentedon Apr 5, 2026
Interesting idea, sounds useful to me, but wonder what other maintainers think.
github-actions commentedon Jun 5, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
joshtriplett commentedon Jun 8, 2026
Obligatory semantically significant sigh at stale bots.
github-actions commentedon Aug 8, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
joshtriplett commentedon Aug 11, 2026
Still not stale.
TerryHowe commentedon Aug 11, 2026
There are some experimental commands
oras backupandoras restoreI think that do something like this. They are seriously restricted in their capabilities as I recall though. I haven't messed with them.github-actions commentedon Oct 12, 2026
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Mistyheart commentedon Nov 6, 2026
I'd like to work on an initial ZIP implementation of
--output-archive: walk the selected artifact metadata, validate and order entry names, and stream verified file contents into one reproducible archive without staging extracted files. I plan to cover named blobs, packed directory layers, platform selection and subjects, while keeping ordinary directory output unchanged. Other archive extensions would report an explicit unsupported-format error in this first change. Tests will cover reproducibility, aliases, invalid paths, corrupt content, and output cleanup. AI tools will assist with the implementation and tests.