Skip to content

Commit 32a794b

Browse files
authored
Merge pull request moby#5251 from tonistiigi/secret-slow-fix
exec: fix incorrect deps computation for special mounts
2 parents bfd46b6 + 3c87ba1 commit 32a794b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

solver/llbsolver/ops/exec.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ type dep struct {
285285
func (e *ExecOp) getMountDeps() ([]dep, error) {
286286
deps := make([]dep, e.numInputs)
287287
for _, m := range e.op.Mounts {
288+
switch m.MountType {
289+
case pb.MountType_SECRET, pb.MountType_SSH, pb.MountType_TMPFS:
290+
continue
291+
}
292+
288293
if m.Input == pb.Empty {
289294
continue
290295
}

0 commit comments

Comments
 (0)