fix(store): a drill and a preview keep the stored files the store reads when it verifies the books
The store's own verification reads the text an extraction recorded as a stored file, so a verification that left the stored files out would not prove books with extracted text. Every proof now builds the books with their stored files, as a restore does, and a test holds it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6cd89d2a6
commit
5d5f94e8dc
6 files changed
+69
-56
No files matched your search
@@ -1159,7 +1159,7 @@ fn proven_head(home: &Home, disk: &std::path::Path, tag: &str) -> (u64, String)
|
||||
use ledger_store::backup::{Ctx, find, verify_found};
|
||||
let scratch = home.dir.path().join(format!("scratch-{tag}"));
|
||||
let found = find(disk, None, &Ctx::new()).unwrap_or_else(|e| panic!("{tag}: {e}"));
|
||||
verify_found(&found, &scratch, false, &Ctx::new())
|
||||
verify_found(&found, &scratch, &Ctx::new())
|
||||
.unwrap_or_else(|e| panic!("{tag}: {e}"))
|
||||
.head
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user