Skip to content

Add merge command for V2 image artifact details - #2287

Merged
lbussell merged 2 commits into
mainfrom
lbussell/v2-merge-command
Nov 23, 2026
Merged

lbussell merged 2 commits into
mainfrom
lbussell/v2-merge-command

Conversation

@lbussell

Copy link
Copy Markdown
Member

This PR adds a preview merge command, next to the preview list command, that combines multiple ImageArtifactDetails files. Like the list command, it is gated behind IMAGEBUILDER_PREVIEW=1.

Inputs must contain disjoint sets of manifests/indexes. If there are any duplicate keys, an exception is thrown. This fits the "post-build merge" scenario, because if the same image was built in multiple build legs, we can't know which one to pick.

I also added property tests that cover merging disjoint inputs and reporting duplicate keys.

Related: #2285

@lbussell
lbussell requested a review from a team as a code owner November 20, 2026 23:14
@lbussell
lbussell merged commit 0497b84 into main Nov 23, 2026
11 checks passed
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.

2 participants