Skip to content

Commit b1e81ce

Browse files
Migrate old versions of catalog
1 parent 3110da2 commit b1e81ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/docker-mcp/catalog/update.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ func updateCatalog(ctx context.Context, name string, catalog Catalog, mcpOAuthDc
6666
// If it's an official v2/v3 catalog URL, always use the URL that matches the feature flag
6767
isV2URL := strings.Contains(url, "/catalog/v2/catalog.yaml")
6868
isV3URL := strings.Contains(url, "/catalog/v3/catalog.yaml")
69+
isV1URL := strings.Contains(url, "/catalog/catalog.yaml")
70+
71+
if isV1URL {
72+
url = GetDockerCatalogURL(mcpOAuthDcrEnabled)
73+
catalog.URL = url
74+
}
6975

7076
if isV2URL || isV3URL {
7177
url = GetDockerCatalogURL(mcpOAuthDcrEnabled)

0 commit comments

Comments
 (0)