copy: Load snapshots before indexes

This commit is contained in:
Michael Eischer committed 2022-04-09 12:27:25 +02:00
1 parent 47243176fa
commit 7b9ae91e04
5 files changed
+29 -3

No files matched your search

+4
View File
@@ -211,6 +211,10 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error {
}
chkr := checker.New(repo, opts.CheckUnused)
err = chkr.LoadSnapshots(gopts.ctx)
if err != nil {
return err
}
Verbosef("load indexes\n")
hints, errs := chkr.LoadIndex(gopts.ctx)