Skip to content

Commit

Permalink
Merge pull request #4192 from goller/fix/merge-diff-cachemap-digest
Browse files Browse the repository at this point in the history
fix: use sha256 for merge/diff op cache maps
  • Loading branch information
tonistiigi authored Sep 12, 2023
2 parents c8ac872 + a49c9c0 commit fca54c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solver/llbsolver/ops/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (d *diffOp) CacheMap(ctx context.Context, group session.Group, index int) (
}

cm := &solver.CacheMap{
Digest: digest.Digest(dt),
Digest: digest.FromBytes(dt),
Deps: make([]struct {
Selector digest.Digest
ComputeDigestFunc solver.ResultBasedCacheFunc
Expand Down
2 changes: 1 addition & 1 deletion solver/llbsolver/ops/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (m *mergeOp) CacheMap(ctx context.Context, group session.Group, index int)
}

cm := &solver.CacheMap{
Digest: digest.Digest(dt),
Digest: digest.FromBytes(dt),
Deps: make([]struct {
Selector digest.Digest
ComputeDigestFunc solver.ResultBasedCacheFunc
Expand Down

0 comments on commit fca54c9

Please sign in to comment.