Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn about images with no registry #68

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Warn about images with no registry #68

merged 1 commit into from
Nov 19, 2024

Conversation

lubomir
Copy link
Contributor

@lubomir lubomir commented Oct 22, 2024

If user specifies a base image with no registry information, things may seem to work as skopeo will use some default value. But it may lead to confusing breakage later if the build system picks a different registry.

For example, right now using fedora as image spec will make skopeo download docker.io/library/fedora:40, but podman uses registry.fedoraproject.org/fedora:40.

There's no good way to automatically fix it, so let's print a big warning at least.

@gnaponie
Copy link

This looks good (besides the conflicts that need to be addressed). I saw a similar behavior in renovate...

If user specifies a base image with no registry information, things may
seem to work as skopeo will use some default value. But it may lead to
confusing breakage later if the build system picks a different registry.

For example, right now using `fedora` as image spec will make skopeo
download `docker.io/library/fedora:40`, but podman uses
`registry.fedoraproject.org/fedora:40`.

There's no good way to automatically fix it, so let's print a big
warning at least.

Relates: #67
@lubomir lubomir force-pushed the warn-about-bare-image branch from b4fabd9 to 2ec7c07 Compare November 19, 2024 12:48
@lubomir lubomir merged commit db945d8 into main Nov 19, 2024
10 checks passed
@lubomir lubomir deleted the warn-about-bare-image branch November 19, 2024 13:03
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