Skip to content

Commit 0ec7760

Browse files
committed
bake: fix missing omitempty and optional tags for network field
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> (cherry picked from commit 1f971b7)
1 parent 78c8c28 commit 0ec7760

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bake/bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ type Target struct {
704704
Outputs []string `json:"output,omitempty" hcl:"output,optional" cty:"output"`
705705
Pull *bool `json:"pull,omitempty" hcl:"pull,optional" cty:"pull"`
706706
NoCache *bool `json:"no-cache,omitempty" hcl:"no-cache,optional" cty:"no-cache"`
707-
NetworkMode *string `json:"network" hcl:"network" cty:"network"`
707+
NetworkMode *string `json:"network,omitempty" hcl:"network,optional" cty:"network"`
708708
NoCacheFilter []string `json:"no-cache-filter,omitempty" hcl:"no-cache-filter,optional" cty:"no-cache-filter"`
709709
ShmSize *string `json:"shm-size,omitempty" hcl:"shm-size,optional"`
710710
Ulimits []string `json:"ulimits,omitempty" hcl:"ulimits,optional"`

0 commit comments

Comments
 (0)