Skip to content

Commit

Permalink
fix: trace lake jobs properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Oct 8, 2023
1 parent fa8c9d7 commit 3a9cfab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ module_facet docs (mod) : FilePath := do
let buildDir := (← getWorkspace).root.buildDir
-- Build all documentation imported modules
let imports ← mod.imports.fetch
imports.forM fun mod => discard <| fetch <| mod.facet `docs
let depDocJobs ← BuildJob.mixArray <| ← imports.mapM fun mod => fetch <| mod.facet `docs
let docFile := mod.filePath (buildDir / "doc") "html"
depDocJobs.bindAsync fun _ depDocTrace => do
exeJob.bindAsync fun exeFile exeTrace => do
modJob.bindSync fun _ modTrace => do
let depTrace := exeTrace.mix modTrace
let depTrace := mixTraceArray #[exeTrace, modTrace, depDocTrace]
let trace ← buildFileUnlessUpToDate docFile depTrace do
logStep s!"Documenting module: {mod.name}"
proc {
Expand Down

0 comments on commit 3a9cfab

Please sign in to comment.