From 791068cd07584495df3dd002fb298a22ce8d3a49 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 10 Sep 2019 18:37:09 -0700 Subject: cmd/hclspecsuite: run hcldec with --keep-nulls This gives us a more precise picture of the result, which is helpful to ensure our tests are not "cheating". --- cmd/hclspecsuite/runner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/hclspecsuite/runner.go b/cmd/hclspecsuite/runner.go index eeac8df..9e48f96 100644 --- a/cmd/hclspecsuite/runner.go +++ b/cmd/hclspecsuite/runner.go @@ -15,8 +15,8 @@ import ( "github.com/zclconf/go-cty/cty/convert" ctyjson "github.com/zclconf/go-cty/cty/json" - "github.com/hashicorp/hcl/v2/ext/typeexpr" "github.com/hashicorp/hcl/v2" + "github.com/hashicorp/hcl/v2/ext/typeexpr" "github.com/hashicorp/hcl/v2/hclparse" ) @@ -318,6 +318,7 @@ func (r *Runner) hcldecTransform(specFile, inputFile string) (cty.Value, hcl.Dia "--spec=" + specFile, "--diags=json", "--with-type", + "--keep-nulls", inputFile, }, Stdout: &outBuffer, -- cgit v1.2.3