mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	bake: fix missing omitempty and optional tags for network field
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		@@ -704,7 +704,7 @@ type Target struct {
 | 
			
		||||
	Outputs          []string           `json:"output,omitempty" hcl:"output,optional" cty:"output"`
 | 
			
		||||
	Pull             *bool              `json:"pull,omitempty" hcl:"pull,optional" cty:"pull"`
 | 
			
		||||
	NoCache          *bool              `json:"no-cache,omitempty" hcl:"no-cache,optional" cty:"no-cache"`
 | 
			
		||||
	NetworkMode      *string            `json:"network" hcl:"network" cty:"network"`
 | 
			
		||||
	NetworkMode      *string            `json:"network,omitempty" hcl:"network,optional" cty:"network"`
 | 
			
		||||
	NoCacheFilter    []string           `json:"no-cache-filter,omitempty" hcl:"no-cache-filter,optional" cty:"no-cache-filter"`
 | 
			
		||||
	ShmSize          *string            `json:"shm-size,omitempty" hcl:"shm-size,optional"`
 | 
			
		||||
	Ulimits          []string           `json:"ulimits,omitempty" hcl:"ulimits,optional"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user