From 2e6341228e7e41cc779cc57f7c38e3545028e7e9 Mon Sep 17 00:00:00 2001 From: Mac Malone Date: Mon, 13 Jan 2025 07:31:33 -0500 Subject: [PATCH] fix: lake: `Job.add` trace --- src/lake/Lake/Build/Job.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lake/Lake/Build/Job.lean b/src/lake/Lake/Build/Job.lean index 6090f0eae9a..e50115d5e2b 100644 --- a/src/lake/Lake/Build/Job.lean +++ b/src/lake/Lake/Build/Job.lean @@ -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. -/