diff --git a/pkg/extensions/sync/destination.go b/pkg/extensions/sync/destination.go index 36483d4cf..58c1112fa 100644 --- a/pkg/extensions/sync/destination.go +++ b/pkg/extensions/sync/destination.go @@ -46,6 +46,7 @@ func NewDestinationRegistry( // to allow passing nil we can do this, noting that it will only work for a local StoreController tmpStorage = NewOciLayoutStorage(storeController) } + return &DestinationRegistry{ storeController: storeController, metaDB: metaDB, diff --git a/pkg/extensions/sync/service.go b/pkg/extensions/sync/service.go index 594044df8..84bbfff9f 100644 --- a/pkg/extensions/sync/service.go +++ b/pkg/extensions/sync/service.go @@ -355,7 +355,10 @@ func (service *BaseService) SyncRepo(ctx context.Context, repo string) error { return nil } -func (service *BaseService) syncTag(ctx context.Context, destinationRepo, remoteRepo, tag string) (digest.Digest, error) { +func (service *BaseService) syncTag( + ctx context.Context, + destinationRepo, remoteRepo, tag string, +) (digest.Digest, error) { copyOptions := getCopyOptions(service.remote.GetContext(), service.destination.GetContext()) policyContext, err := getPolicyContext(service.log)