From 5b4e8b9d71609abe027b37c165063696756c3fdc Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 5 Dec 2022 15:05:17 +0100 Subject: [PATCH] hcl: SrcRange not checked when solving JSON func calls Signed-off-by: CrazyMax --- bake/hclparser/expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bake/hclparser/expr.go b/bake/hclparser/expr.go index d6ff2a03..f8a5e765 100644 --- a/bake/hclparser/expr.go +++ b/bake/hclparser/expr.go @@ -87,7 +87,7 @@ func appendJSONFuncCalls(exp hcl.Expression, m map[string]struct{}) error { return nil } rng := src.FieldByName("SrcRange") - if val.IsZero() { + if rng.IsZero() { return nil } var stringVal struct {