From d0d35f0d03c3d4d23db1d64698c25fdbc3a2aa7e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 20 Mar 2024 11:41:50 +0100 Subject: [PATCH] core/images/archive: normalizeReference: remove outdated TODO This TODO was added in 9e6db7195485f70d0798e5aebdb7c96254812be1, at which time the reference package was part of the docker/distribution (registry) repository. The reference package has moved to a standalone module, which has been in use since 492347090250f689230bafd79d73a1647767a598, so this should no longer be a concern. Signed-off-by: Sebastiaan van Stijn --- core/images/archive/reference.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/images/archive/reference.go b/core/images/archive/reference.go index e167f2d5e..5e12eb98f 100644 --- a/core/images/archive/reference.go +++ b/core/images/archive/reference.go @@ -72,7 +72,6 @@ func isImagePrefix(s, prefix string) bool { } func normalizeReference(ref string) (string, error) { - // TODO: Replace this function to not depend on reference package normalized, err := distref.ParseDockerRef(ref) if err != nil { return "", fmt.Errorf("normalize image ref %q: %w", ref, err)