From ec9daba87e8083429fe142f5432c079ae353dd5b Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 10 Dec 2021 19:32:40 +0100 Subject: [PATCH] bake: ignore NetworkMode field for json and hcl Signed-off-by: CrazyMax --- bake/bake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bake/bake.go b/bake/bake.go index 8b99bb0a..9180db9a 100644 --- a/bake/bake.go +++ b/bake/bake.go @@ -435,7 +435,7 @@ type Target struct { Outputs []string `json:"output,omitempty" hcl:"output,optional"` Pull *bool `json:"pull,omitempty" hcl:"pull,optional"` NoCache *bool `json:"no-cache,omitempty" hcl:"no-cache,optional"` - NetworkMode *string + NetworkMode *string `json:"-" hcl:"-"` // IMPORTANT: if you add more fields here, do not forget to update newOverrides and README. }