From c277824a71edc9ac70df20037af7f142b0533d09 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 9 Apr 2019 17:42:41 -0700 Subject: [PATCH] progressui: allow vertex reset Signed-off-by: Tonis Tiigi --- util/progress/progressui/display.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/progress/progressui/display.go b/util/progress/progressui/display.go index 96340197..e7fee54d 100644 --- a/util/progress/progressui/display.go +++ b/util/progress/progressui/display.go @@ -227,7 +227,10 @@ func (t *trace) update(s *client.SolveStatus, termWidth int) { } t.vertexes = append(t.vertexes, t.byDigest[v.Digest]) } - t.byDigest[v.Digest].Vertex = v + // allow a duplicate initial vertex that shouldn't reset state + if !(prev != nil && prev.Started != nil && v.Started == nil) { + t.byDigest[v.Digest].Vertex = v + } t.byDigest[v.Digest].jobCached = false } for _, s := range s.Statuses {