fix: lake: v4.16.0-rc1 trace issues (#6627)

This PR aims to fix the trace issues reported by Mathlib that are
breaking `lake exe cache` in downstream projects.
This commit is contained in:
Mac Malone 2025-01-13 09:16:07 -05:00 committed by GitHub
parent 8483ac7258
commit a6eea4b650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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. -/