Skip to content

Commit

Permalink
fix: lake: Job.add trace
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Jan 13, 2025
1 parent d2c4471 commit 2e63412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lake/Lake/Build/Job.lean
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ results of `a` and `b`. The job `c` errors if either `a` or `b` error.
/-- Merges this job with another, discarding its output and trace. -/
def add (self : Job α) (other : Job β) : Job α :=
self.zipResultWith (other := other) fun
| .ok a sa, .ok _ sb => .ok a (sa.merge sb)
| .ok a sa, .ok _ sb => .ok a {sa.merge sb with trace := sa.trace}
| ra, rb => .error 0 {ra.state.merge rb.state with trace := ra.state.trace}

/-- Merges this job with another, discarding both outputs. -/
Expand Down

0 comments on commit 2e63412

Please sign in to comment.