mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@8b7bcb900d3c
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
5
vendor/github.com/moby/buildkit/client/llb/definition.go
generated
vendored
5
vendor/github.com/moby/buildkit/client/llb/definition.go
generated
vendored
@ -29,6 +29,10 @@ type DefinitionOp struct {
|
||||
|
||||
// NewDefinitionOp returns a new operation from a marshalled definition.
|
||||
func NewDefinitionOp(def *pb.Definition) (*DefinitionOp, error) {
|
||||
if def == nil {
|
||||
return nil, errors.New("invalid nil input definition to definition op")
|
||||
}
|
||||
|
||||
ops := make(map[digest.Digest]*pb.Op)
|
||||
defs := make(map[digest.Digest][]byte)
|
||||
platforms := make(map[digest.Digest]*ocispecs.Platform)
|
||||
@ -205,6 +209,7 @@ func (d *DefinitionOp) Inputs() []Output {
|
||||
dgst: input.Digest,
|
||||
index: input.Index,
|
||||
inputCache: d.inputCache,
|
||||
sources: d.sources,
|
||||
}
|
||||
existingIndexes := d.inputCache[input.Digest]
|
||||
indexDiff := int(input.Index) - len(existingIndexes)
|
||||
|
Reference in New Issue
Block a user