Skip to content

Commit

Permalink
Merge pull request moby#5251 from tonistiigi/secret-slow-fix
Browse files Browse the repository at this point in the history
exec: fix incorrect deps computation for special mounts
  • Loading branch information
AkihiroSuda authored Aug 13, 2024
2 parents bfd46b6 + 3c87ba1 commit 32a794b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions solver/llbsolver/ops/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ type dep struct {
func (e *ExecOp) getMountDeps() ([]dep, error) {
deps := make([]dep, e.numInputs)
for _, m := range e.op.Mounts {
switch m.MountType {
case pb.MountType_SECRET, pb.MountType_SSH, pb.MountType_TMPFS:
continue
}

if m.Input == pb.Empty {
continue
}
Expand Down

0 comments on commit 32a794b

Please sign in to comment.