Skip to content

cmd/image-builder: only run findDistro once - #2651

Merged
croissanne merged 1 commit into
mainfrom
getoneimage
Sep 4, 2026
Merged

croissanne merged 1 commit into
mainfrom
getoneimage

Conversation

@croissanne

Copy link
Copy Markdown
Member

findDistro should only be run once per command, when using it as an input for getOneImage. Once an imagefilter.Result is created, the distro can be accessed through the distro.ImageType interface.

getOneImage is called for describe, pkgsearch, manifest and build.

`findDistro` should only be run once per command, when using it as an
input for `getOneImage`. Once an `imagefilter.Result` is created, the
distro can be accessed through the `distro.ImageType` interface.

`getOneImage` is called for `describe`, `pkgsearch`, `manifest` and
`build`.
@croissanne
croissanne requested a review from a team as a code owner September 3, 2026 14:38
@supakeen

supakeen commented Sep 3, 2026

Copy link
Copy Markdown
Member

Huh really that short.

@supakeen

supakeen commented Sep 4, 2026

Copy link
Copy Markdown
Member

Didn't we have an issue tracking this?

@croissanne

Copy link
Copy Markdown
Member Author

Didn't we have an issue tracking this?

don't think so

@croissanne
croissanne enabled auto-merge September 4, 2026 12:06

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@croissanne
croissanne added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 2d820d3 Sep 4, 2026
54 checks passed
@croissanne
croissanne deleted the getoneimage branch September 4, 2026 13:51
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.

3 participants