Skip to content

Update Podman go package#89

Merged
jlebon merged 4 commits into
bootc-dev:mainfrom
alicefr:podman-v6-migration
Jul 3, 2026
Merged

Update Podman go package#89
jlebon merged 4 commits into
bootc-dev:mainfrom
alicefr:podman-v6-migration

Conversation

@alicefr

@alicefr alicefr commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Manually update the podman package from v5 to v6. Podman package has change the import path and the automatic update fails. See #84

alicefr added 4 commits July 2, 2026 13:32
Updates module paths from:
   github.com/containers/podman/v5 -> go.podman.io/podman/v6
   github.com/containers/common -> go.podman.io/common.

Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
Update import paths in all source files from
github.com/containers/podman/v5 to go.podman.io/podman/v6
and github.com/containers/common to go.podman.io/common.

Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
Run go mod tidy.

Signed-off-by: Alice Frosi <afrosi@redhat.com>
On the CI the registries.conf in v1 format. Since we update the go
binding for podman, podman bindings reject v1 for any image operation,
causing EnsureImage calls to fail.

Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
@alicefr

alicefr commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

@Johan-Liebert1 PTAL

@jlebon

jlebon commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Does this require the remote to also be on Podman v6? Or is it compatible with v5 remotes?

@Johan-Liebert1 Johan-Liebert1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Changes look good

@alicefr

alicefr commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Does this require the remote to also be on Podman v6? Or is it compatible with v5 remotes?

From the go doc, it seems that the minimal supported version is 4.0.0. Additionally, on our CI we are even using podman 4.9.3

@jlebon jlebon merged commit 61899a6 into bootc-dev:main Jul 3, 2026
10 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.

3 participants