Skip to content

Commit 8bc1301

Browse files
committed
Fix cache locks with multiple mounts
Append to the lock list instead of replacing it. Signed-off-by: David Shea <[email protected]>
1 parent f0e87b7 commit 8bc1301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/parse/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ func getMounts(ctx *types.SystemContext, store storage.Store, mountLabel string,
747747
finalMounts[mount.Destination] = mount
748748
case TypeCache:
749749
mount, intermediateMount, lockedPaths, err := GetCacheMount(tokens, nil, tmpDir)
750-
lockedTargets = lockedPaths
750+
lockedTargets = append(lockedTargets, lockedPaths...)
751751
if err != nil {
752752
return nil, nil, nil, nil, nil, err
753753
}

0 commit comments

Comments
 (0)