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

Ignore image tag when digest is provided too #16

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

lubomir
Copy link
Contributor

@lubomir lubomir commented Jun 25, 2024

When image specification contains both a tag and a digest, remove the tag and ignore it. Skopeo fails when both are provided, and this new behaviour matches what podman 4.9.4 does. There's a message provided that the tag is being stripped out.

A test case for this is added. It can be invoked by running pytest.

There is currently no CI running the tests though. More test cases would be welcome.

Fixes: #15

When image specification contains both a tag and a digest, remove the tag and
ignore it. Skopeo fails when both are provided, and this new behaviour
matches what podman 4.9.4 does. There's a message provided that the tag is
being stripped out.

A test case for this is added. It can be invoked by running `pytest`.

Fixes: #15
@gnaponie
Copy link

Looks good to me!

@lubomir lubomir merged commit 5ce250c into main Jun 25, 2024
1 check passed
@ralphbean ralphbean deleted the ignore-tag-with-digest branch June 26, 2024 23:34
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.

Support both tag and digest
2 participants