From a9d183add49ae43d8c57fbabbba1bb9609e8cf12 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 13 Aug 2024 13:16:57 +0100 Subject: [PATCH] chore: set pb.Empty on ssh and secret mounts These mounts have no vertex inputs, and so should be *explicitly* marshaled as such. Signed-off-by: Justin Chadwell (cherry picked from commit 157efce41a3c359f19b595699f5184c7986ac6ac) --- client/llb/exec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/llb/exec.go b/client/llb/exec.go index 457a9b1f2f8e..faba8bddc72b 100644 --- a/client/llb/exec.go +++ b/client/llb/exec.go @@ -396,6 +396,7 @@ func (e *ExecOp) Marshal(ctx context.Context, c *Constraints) (digest.Digest, [] }) } else { pm := &pb.Mount{ + Input: pb.Empty, Dest: s.Target, MountType: pb.MountType_SECRET, SecretOpt: &pb.SecretOpt{ @@ -412,6 +413,7 @@ func (e *ExecOp) Marshal(ctx context.Context, c *Constraints) (digest.Digest, [] for _, s := range e.ssh { pm := &pb.Mount{ + Input: pb.Empty, Dest: s.Target, MountType: pb.MountType_SSH, SSHOpt: &pb.SSHOpt{