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

Don't abort listing tags when we encounter a digest #2440

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jun 3, 2024

Per containers/skopeo#2346, that happens in the wild.

// https://github.com/opencontainers/distribution-spec/blob/8a871c8234977df058f1a14e299fe0a673853da2/spec.md?plain=1#L160 ,
// include digests in the list.
if _, err := digest.Parse(tag); err == nil {
logrus.Debugf("Ignoring invalid tag %q matching a digest format", tag)
Copy link
Member

Choose a reason for hiding this comment

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

This does not appear to be ignoring?

Copy link
Collaborator Author

@mtrmac mtrmac Jun 3, 2024

Choose a reason for hiding this comment

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

Doh! Thanks.

Per containers/skopeo#2346, that happens
in the wild.

Signed-off-by: Miloslav Trmač <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Jun 3, 2024

LGTM
@giuseppe @vrothberg @Luap99 @mheon PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

/lgtm

@vrothberg vrothberg merged commit bd3e203 into containers:main Jun 4, 2024
10 checks passed
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jun 4, 2024

Fix confirmed in containers/skopeo#2346 (comment) , for the record.

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.

4 participants