Skip to content

Commit

Permalink
Merge pull request #3682 from ktock/backport-source
Browse files Browse the repository at this point in the history
[0.11 backport] Allow DefinitionOp to track sources
  • Loading branch information
tonistiigi committed Mar 11, 2023
2 parents 3abd1ef + b104f56 commit 3f612f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/llb/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f612f6

Please sign in to comment.