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]>
  • Loading branch information
jedevc committed Aug 13, 2024
1 parent 8a58645 commit 157efce
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 157efce

Please sign in to comment.