Skip to content

go.mod: add major version to module name#2453

Closed
achilleas-k wants to merge 3 commits into
osbuild:mainfrom
achilleas-k:go.mod/version
Closed

go.mod: add major version to module name#2453
achilleas-k wants to merge 3 commits into
osbuild:mainfrom
achilleas-k:go.mod/version

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

The release-action has been updated to handle bumping this, and it will add it if it's missing, but we want the next release to include the version so we can start importing image-builder by the tagged version as soon as we make the next release (v73.0.0).

@achilleas-k achilleas-k requested a review from a team as a code owner June 22, 2026 18:00
thozza
thozza previously approved these changes Jun 22, 2026
@achilleas-k

Copy link
Copy Markdown
Member Author

Need to update import paths as well.

@achilleas-k achilleas-k marked this pull request as draft June 22, 2026 18:10
We need this again to handle the migration to naming the module with a
major version.

Currently the blueprint imports image-builder with no major version in
the module name, since we don't have one.  As soon as add it here and
import paths are updated, the same incompatibility we faced the last
time will occur again: image-builder uses blueprint functions that take
types from github.com/osbuild/image-builder but the types will instead
be from github.com/osbuild/image-builder/v73.
@achilleas-k achilleas-k marked this pull request as ready for review June 22, 2026 18:32
@achilleas-k

Copy link
Copy Markdown
Member Author

Quite the mess we've made here. The blueprint interdependency is really making things weird.

thozza
thozza previously approved these changes Jun 22, 2026
thozza
thozza previously approved these changes Jun 22, 2026

@avitova avitova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's few places where you put v73 into a GitHub link:)

Comment thread cmd/image-builder/describeimg.go Outdated
func describeImage(img *imagefilter.Result, out io.Writer) error {
// see
// https://github.com/osbuild/image-builder/pull/1019#discussion_r1832376568
// https://github.com/osbuild/image-builder/v73/pull/1019#discussion_r1832376568

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is not on purpose?

Comment thread pkg/depsolvednf/v2.go Outdated
// This requires functional testing to ensure RHSM secrets discovery
// works correctly in the solver.
// See: https://github.com/osbuild/image-builder/issues/2055
// See: https://github.com/osbuild/image-builder/v73/issues/2055

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Likely not intentional.

Comment thread pkg/depsolvednf/depsolvednf.go Outdated
}

// XXX: we should let the depsolver handle subscriptions: https://github.com/osbuild/image-builder/issues/2055
// XXX: we should let the depsolver handle subscriptions: https://github.com/osbuild/image-builder/v73/issues/2055

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a comment as well, and should not have v73, I think.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In this file there's also github links.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here

}

// Workaround for lack of --target-imgref in Anaconda, xref https://github.com/osbuild/image-builder/issues/380
// Workaround for lack of --target-imgref in Anaconda, xref https://github.com/osbuild/image-builder/v73/issues/380

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

^

Comment thread pkg/manifest/os.go Outdated
// Depsolve customization packages separately to avoid conflicts with base
// package exclusion.
// See https://github.com/osbuild/image-builder/issues/1323
// See https://github.com/osbuild/image-builder/v73/issues/1323

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

^

Comment thread pkg/manifest/os.go Outdated
// Disabling dracut for ostree-based systems resolves this issue.
// Dracut will be run by rpm-ostree itself while composing the image.
// https://github.com/osbuild/image-builder/issues/624
// https://github.com/osbuild/image-builder/v73/issues/624

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

^

Comment thread pkg/manifest/ostree_deployment.go Outdated
@@ -392,7 +392,7 @@ func (p *OSTreeDeployment) serialize() (osbuild.Pipeline, error) {
// mountpoints if its not present.This will safeguard
// any ostree deployment which has custom filesystem
// during ostree upgrade.
// issue # https://github.com/osbuild/image-builder/issues/352
// issue # https://github.com/osbuild/image-builder/v73/issues/352

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

^

@achilleas-k

Copy link
Copy Markdown
Member Author

There's few places where you put v73 into a GitHub link:)

Welp. sed-ing is hard sometimes.
Thanks for looking closer than I did. Cleaning it up.

The release-action has been updated to handle bumping this, and it will
add it if it's missing, but we want the next release to include the
version so we can start importing image-builder by the tagged version as
soon as we make the next release (v73.0.0).

Changing the module name requires updating all import paths internally
to match.  The go.mod file now also has an indirect dependency on the
older version of image-builder, without the version in the module name,
because of the dependency loop with the blueprint library.
@achilleas-k

Copy link
Copy Markdown
Member Author

All fixed. Thanks again!

@achilleas-k achilleas-k marked this pull request as draft June 23, 2026 09:53
@achilleas-k

Copy link
Copy Markdown
Member Author

DRAFT: We're still discussing if we want to do this or if we're going to keep things unversioned.

@achilleas-k

Copy link
Copy Markdown
Member Author

@achilleas-k achilleas-k deleted the go.mod/version branch June 23, 2026 15:29
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