Skip to content

Commit 8403a7c

Browse files
authored
Merge pull request moby#5181 from tonistiigi/solver-nil-releaser
llbsolver: avoid nil releaser on error
2 parents 5a91bd3 + ce9e282 commit 8403a7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solver/llbsolver/solver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,10 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend
385385
if err1 != nil {
386386
// don't replace the build error with this import error
387387
bklog.G(ctx).Errorf("failed to import error to build record: %+v", err1)
388+
} else {
389+
releasers = append(releasers, release)
388390
}
389391
rec.ExternalError = desc
390-
releasers = append(releasers, release)
391392
rec.Error = status
392393
}
393394

0 commit comments

Comments
 (0)