From 6c724a1a95c520b96bce231165e64d08b7820af3 Mon Sep 17 00:00:00 2001 From: bin liu Date: Thu, 28 Sep 2023 10:44:34 +0800 Subject: [PATCH] use manifestTagsPathSpec for listing all tags In terms of results, a`manifestTagsPathSpec{ name: "repo" }` equals `manifestTagPathSpec{ name: "repo", tag: "" }`, but from the intention, the `manifestTagsPathSpec` should be used. Signed-off-by: bin liu --- registry/storage/tagstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/storage/tagstore.go b/registry/storage/tagstore.go index 268c21cc..766295e9 100644 --- a/registry/storage/tagstore.go +++ b/registry/storage/tagstore.go @@ -24,7 +24,7 @@ type tagStore struct { // All returns all tags func (ts *tagStore) All(ctx context.Context) ([]string, error) { - pathSpec, err := pathFor(manifestTagPathSpec{ + pathSpec, err := pathFor(manifestTagsPathSpec{ name: ts.repository.Named().Name(), }) if err != nil {