refactor: check hash after verifying module artifact exists
This commit is contained in:
parent
4ce8716b99
commit
332af4c262
1 changed files with 1 additions and 1 deletions
|
|
@ -76,9 +76,9 @@ def checkModuleTrace [GetMTime a] (artifact : a)
|
|||
let leanHash := Hash.compute contents
|
||||
let maxMTime := max leanMTime depTrace.mtime
|
||||
let fullHash := Hash.mix leanHash depTrace.hash
|
||||
let sameHash ← checkIfSameHash fullHash hashFile
|
||||
try
|
||||
discard <| getMTime artifact -- ensure the artifact actually exists
|
||||
let sameHash ← checkIfSameHash fullHash hashFile
|
||||
let mtime := ite sameHash 0 maxMTime
|
||||
(sameHash, ⟨fullHash, mtime⟩)
|
||||
catch _ =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue