copy: Load snapshots before indexes

This commit is contained in:
Michael Eischer
2021-11-07 22:33:44 +01:00
parent 47243176fa
commit 7b9ae91e04
5 changed files with 29 additions and 3 deletions

View File

@@ -44,6 +44,10 @@ func checkPacks(chkr *checker.Checker) []error {
}
func checkStruct(chkr *checker.Checker) []error {
err := chkr.LoadSnapshots(context.TODO())
if err != nil {
return []error{err}
}
return collectErrors(context.TODO(), func(ctx context.Context, errChan chan<- error) {
chkr.Structure(ctx, nil, errChan)
})