mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to opentelemetry support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
6
vendor/github.com/moby/buildkit/client/llb/definition.go
generated
vendored
6
vendor/github.com/moby/buildkit/client/llb/definition.go
generated
vendored
@ -105,11 +105,11 @@ func (d *DefinitionOp) ToInput(ctx context.Context, c *Constraints) (*pb.Input,
|
||||
return d.Output().ToInput(ctx, c)
|
||||
}
|
||||
|
||||
func (d *DefinitionOp) Vertex(context.Context) Vertex {
|
||||
func (d *DefinitionOp) Vertex(context.Context, *Constraints) Vertex {
|
||||
return d
|
||||
}
|
||||
|
||||
func (d *DefinitionOp) Validate(context.Context) error {
|
||||
func (d *DefinitionOp) Validate(context.Context, *Constraints) error {
|
||||
// Scratch state has no digest, ops or metas.
|
||||
if d.dgst == "" {
|
||||
return nil
|
||||
@ -151,7 +151,7 @@ func (d *DefinitionOp) Marshal(ctx context.Context, c *Constraints) (digest.Dige
|
||||
return "", nil, nil, nil, errors.Errorf("cannot marshal empty definition op")
|
||||
}
|
||||
|
||||
if err := d.Validate(ctx); err != nil {
|
||||
if err := d.Validate(ctx, c); err != nil {
|
||||
return "", nil, nil, nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user