[RFC] osbuild: define the minimum osbuild version and enforce it #1194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Define a new constant in the
osbuild
package for the minimum osbuild version supported by the package. Enforce the minimum version when executing osbuild.This has the potential to prevent surprises when using older osbuild with
images
implementation that relies on changes in a newer version of osbuild.This will allow dependent projects to extract the minimum version and check if their packaging requirements are up to date with the version of
images
that they depend on.My plan would be to then have a GH action in
osbuild-composer
andimage-builder-cli
to check if the SPEC file requires osbuild of at leastMinimumOSBuildVersion
version, but in practice, CI tests building any images would fail as well.