Skip to content

Commit

Permalink
handle missing provenance for non-evaluated result
Browse files Browse the repository at this point in the history
If resultProxy has been created but the result has not been
evaluated then it shouldn't show missing provenance error
for that result.

This patch works together with previous one that fixes
error reporting on provenance creation.

Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jun 28, 2023
1 parent fdc9d20 commit 60b3aa7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions solver/llbsolver/solver.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,6 @@ func getRefProvenance(ref solver.ResultProxy, br *provenanceBridge) (*provenance
}
p := ref.Provenance()
if p == nil {
if br.req != nil {
return nil, errors.Errorf("missing provenance for %s", ref.ID())
}
return nil, nil
}

Expand Down

0 comments on commit 60b3aa7

Please sign in to comment.