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 {