Skip to content

Merge pkg/distro/generic/ into pkg/distro/defs/ - #2675

Closed
achilleas-k wants to merge 1 commit into
osbuild:mainfrom
achilleas-k:defs-shuffling
Closed

achilleas-k wants to merge 1 commit into
osbuild:mainfrom
achilleas-k:defs-shuffling

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

This is a simple code-moving PR in preparation for bigger changes in the way we load and handle image definitions.


This commit moves everything from pkg/distro/generic/ into pkg/distro/defs/. Import paths have been adjusted throughout the project.

The genManifest() function in bootc_test.go was rewritten to not depend on manifestgen since that creates an import cycle.

The purpose of this change is to isolate any handling of image definition loading and mentions of YAML to one package, pkg/distro/defs/. In the end, loading functionality and all types initialised from the distro definitions will be defined in pkg/distro/defs/. YAML-specific types will be private and convert to internal types for handling. As much as possible, the properties of these types will be immutable.

The GitLab CI config has been updated to test the new paths when explicitly tested.

supakeen
supakeen previously approved these changes Sep 11, 2026

@supakeen supakeen 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.

Nice cleanup.

@achilleas-k
achilleas-k requested a review from avitova September 11, 2026 16:08
This commit moves everything from pkg/distro/generic/ into
pkg/distro/defs/.  Import paths have been adjusted throughout the
project.

The genManifest() function in bootc_test.go was rewritten to not depend
on manifestgen since that creates an import cycle.

The purpose of this change is to isolate any handling of image
definition loading and mentions of YAML to one package,
pkg/distro/defs/.  In the end, loading functionality and all types
initialised from the distro definitions will be defined in
pkg/distro/defs/.  YAML-specific types will be private and convert to
internal types for handling.  As much as possible, the properties of
these types will be immutable.

The GitLab CI config has been updated to test the new paths when
explicitly tested.
@achilleas-k

Copy link
Copy Markdown
Member Author

Needed a rebase

@achilleas-k

Copy link
Copy Markdown
Member Author

Closing in favour of #2685.

auto-merge was automatically disabled September 14, 2026 15:43

Pull request was closed

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