Skip to content

feat(sync): add local catalog fallback#4011

Draft
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-3843-local-catalog-fallback
Draft

feat(sync): add local catalog fallback#4011
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-3843-local-catalog-fallback

Conversation

@AkashKumar7902

Copy link
Copy Markdown
Contributor

Summary

  • add localCatalogFallback for sync registries when upstream catalog listing fails
  • enumerate locally cached repositories and map destination/stripPrefix repos back to upstream names
  • document the new sync option in the examples

Tests

  • GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint" ./pkg/extensions/sync -run TestGetNextRepoLocalCatalogFallback -count=1
  • GOEXPERIMENT=jsonv2 go test -race -tags "sync scrub metrics search lint" ./pkg/extensions/sync -run TestGetNextRepoLocalCatalogFallback -count=1
  • GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint" ./pkg/extensions/sync -run '^$' -count=1
  • GOEXPERIMENT=jsonv2 go test ./pkg/cli/server -run '^$' -count=1
  • GOEXPERIMENT=jsonv2 go test -tags "sync scrub metrics search lint" ./pkg/extensions/config/sync -count=1
  • jq empty examples/config-sync.json
  • git diff --check

Fixes #3843

@AkashKumar7902 AkashKumar7902 force-pushed the issue-3843-local-catalog-fallback branch from 1c00af6 to 1293e04 Compare April 29, 2026 21:56
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.

[Feat]: add local catalog fallback for polling when remote catalog is unavailable

1 participant