@@ -34,7 +34,7 @@ import (
34
34
"github.com/moby/buildkit/util/progress"
35
35
"github.com/moby/buildkit/util/tracing/detect"
36
36
"github.com/moby/buildkit/worker"
37
- digest "github.com/opencontainers/go-digest"
37
+ "github.com/opencontainers/go-digest"
38
38
"github.com/pkg/errors"
39
39
"go.opentelemetry.io/otel/sdk/trace/tracetest"
40
40
"go.opentelemetry.io/otel/trace"
@@ -907,27 +907,27 @@ func inBuilderContext(ctx context.Context, b solver.Builder, name, id string, f
907
907
}
908
908
return b .InContext (ctx , func (ctx context.Context , g session.Group ) error {
909
909
pw , _ , ctx := progress .NewFromContext (ctx , progress .WithMetadata ("vertex" , v .Digest ))
910
- notifyCompleted := notifyStarted (ctx , & v , false )
910
+ notifyCompleted := notifyStarted (ctx , & v )
911
911
defer pw .Close ()
912
912
err := f (ctx , g )
913
- notifyCompleted (err , false )
913
+ notifyCompleted (err )
914
914
return err
915
915
})
916
916
}
917
917
918
- func notifyStarted (ctx context.Context , v * client.Vertex , cached bool ) func (err error , cached bool ) {
918
+ func notifyStarted (ctx context.Context , v * client.Vertex ) func (err error ) {
919
919
pw , _ , _ := progress .NewFromContext (ctx )
920
920
start := time .Now ()
921
921
v .Started = & start
922
922
v .Completed = nil
923
- v .Cached = cached
923
+ v .Cached = false
924
924
id := identity .NewID ()
925
925
pw .Write (id , * v )
926
- return func (err error , cached bool ) {
926
+ return func (err error ) {
927
927
defer pw .Close ()
928
928
stop := time .Now ()
929
929
v .Completed = & stop
930
- v .Cached = cached
930
+ v .Cached = false
931
931
if err != nil {
932
932
v .Error = err .Error ()
933
933
}
0 commit comments