fix(watch): drop the digest memo between rounds

This commit is contained in:
sneeker committed 2022-08-17 19:24:25 +00:00
1 parent 5af9dfd8a8
commit 82afcaf27f
2 files changed
+5

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ let digest_file p =
let forget p = Hashtbl.remove digests p
(* The memo saves re-hashing a header that half the project includes, so it is
only ever valid for one build. A watch loop runs many in one process. *)
let reset () = Hashtbl.reset digests
let key ~cmd ~inputs =
let b = Buffer.create 256 in
Buffer.add_string b cmd;