Skip to content

Commit 157efce

Browse files
committed
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 <[email protected]>
1 parent 8a58645 commit 157efce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/llb/exec.go

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ func (e *ExecOp) Marshal(ctx context.Context, c *Constraints) (digest.Digest, []
396396
})
397397
} else {
398398
pm := &pb.Mount{
399+
Input: pb.Empty,
399400
Dest: s.Target,
400401
MountType: pb.MountType_SECRET,
401402
SecretOpt: &pb.SecretOpt{
@@ -412,6 +413,7 @@ func (e *ExecOp) Marshal(ctx context.Context, c *Constraints) (digest.Digest, []
412413

413414
for _, s := range e.ssh {
414415
pm := &pb.Mount{
416+
Input: pb.Empty,
415417
Dest: s.Target,
416418
MountType: pb.MountType_SSH,
417419
SSHOpt: &pb.SSHOpt{

0 commit comments

Comments
 (0)