Skip to content

Conversation

@twz123
Copy link

@twz123 twz123 commented Jan 22, 2021

Fixes #226

if ref, ok := m.Annotations[ocispec.AnnotationRefName]; ok {
if normalized, err := reference.ParseNormalizedNamed(name); err == nil {
if normalizedWithTag, err := reference.WithTag(normalized, ref); err == nil {
if normalized == normalizedWithTag {
Copy link
Author

Choose a reason for hiding this comment

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

Me being paranoid here. How much of this is necessary/makes sense?

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.

Load an image from a TAR archive

1 participant