diff --git a/client/llb/definition.go b/client/llb/definition.go index d6dda89bb14b..f92ee2d0ab60 100644 --- a/client/llb/definition.go +++ b/client/llb/definition.go @@ -209,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)