From 50acf7c1b430c2c5a73a675fe2efc7918b6a7c07 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 5 Nov 2026 17:38:04 +0100 Subject: [PATCH] artifact-store-tools: the sweep seats read the artifact store's form through the registry clients' forms too (S-8; issue 1966) Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i --- .../cmd/artifact-store-tools/sweepseats.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/artifact-store-tools/cmd/artifact-store-tools/sweepseats.go b/modules/artifact-store-tools/cmd/artifact-store-tools/sweepseats.go index e0c84fc04..568b62781 100644 --- a/modules/artifact-store-tools/cmd/artifact-store-tools/sweepseats.go +++ b/modules/artifact-store-tools/cmd/artifact-store-tools/sweepseats.go @@ -32,7 +32,7 @@ var sweepFindingKey = meshconditionsclient.Key(meshconditionsclient.ScopeModule, // canonical is a kept reference in the older form, `artifact-store://`, whichever form it came in; another is as // it was. func canonical(reference string) string { - path, kept := catalogue.InArtifactStore(reference) + path, kept := registryForms.InArtifactStore(reference) if !kept { return reference } @@ -42,7 +42,7 @@ func canonical(reference string) string { // seatOf is the seat, name and digest a kept reference is held under: a bundle or an archive on oci-artifact-registry, // an image or a copy of an upstream base on container-image-registry. func seatOf(reference string) (seat, name, digest string, err error) { - path, kept := catalogue.InArtifactStore(reference) + path, kept := registryForms.InArtifactStore(reference) if !kept { return "", "", "", fmt.Errorf("%s is no reference into the mesh's registries", reference) } @@ -57,7 +57,7 @@ func seatOf(reference string) (seat, name, digest string, err error) { // isCopy is whether a kept reference is a copy of an upstream base. func isCopy(reference string) bool { - path, _ := catalogue.InArtifactStore(reference) + path, _ := registryForms.InArtifactStore(reference) return strings.HasPrefix(path, "upstream/") }