Skip to content

Commit

Permalink
chore: set pb.Empty on ssh and secret mounts
Browse files Browse the repository at this point in the history
These mounts have no vertex inputs, and so should be *explicitly*
marshaled as such.

Signed-off-by: Justin Chadwell <[email protected]>
(cherry picked from commit 157efce)
  • Loading branch information
jedevc authored and tonistiigi committed Aug 15, 2024
1 parent d1d3ad8 commit a9d183a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/llb/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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{
Expand Down

0 comments on commit a9d183a

Please sign in to comment.