Skip to content

weldr,cloudapi: tweaks around the reporegistry handling#4910

Merged
achilleas-k merged 2 commits intoosbuild:mainfrom
mvo5:reporegistry-tweaks
Oct 31, 2025
Merged

weldr,cloudapi: tweaks around the reporegistry handling#4910
achilleas-k merged 2 commits intoosbuild:mainfrom
mvo5:reporegistry-tweaks

Conversation

@mvo5
Copy link
Contributor

@mvo5 mvo5 commented Oct 30, 2025

Some small tweak that I noticed while working on
osbuild/images#1980
(and osbuild/image-builder-cli#360)


cloudapi: when depsolving specific imagetypes used
ReposByImageTypeName

The cloudapi depsolve() endpoint is currently not taking tagged
repositories into account. Ensure that when an imagetype is
specified the repos are parsed again so that any "tagged" repos
for specific image types are taken into account as well.


weldr: use ReposByArchName() instead of DistroHasRepos()

By doing this we can drop the DistroHasRepos() from images. This
is the only API user.

If dropping is undesired I think we should change the signature
of DistroHasRepos() to become (bool, error) (or just error).

@mvo5 mvo5 requested a review from a team as a code owner October 30, 2025 11:06
@mvo5 mvo5 requested review from achilleas-k, bcl and croissanne and removed request for a team October 30, 2025 11:06
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

LGTM

mvo5 added 2 commits October 30, 2025 20:19
By doing this we can drop the DistroHasRepos() from images. This
is the only API user.

If dropping is undesired I think we should change the signature
of DistroHasRepos() to become `(bool, error)` (or just error).
The cloudapi depsolve() endpoint is currently not taking tagged
repositories into account. Ensure that when an imagetype is
specified the repos are parsed again so that any "tagged" repos
for specific image types are taken into account as well.
@achilleas-k
Copy link
Member

Clicked rebase. New terraform configs merged in main.

Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@achilleas-k achilleas-k merged commit c6f4083 into osbuild:main Oct 31, 2025
51 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.

4 participants