summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMartin Atkins <mart@degeneration.co.uk>2019-09-10 18:37:09 -0700
committerMartin Atkins <mart@degeneration.co.uk>2019-10-01 15:59:10 -0700
commit791068cd07584495df3dd002fb298a22ce8d3a49 (patch)
treec8e3e8b7e45b63b018d19705bf9333170ed8c945 /cmd
parentc366498686858de99b130c82436c047443bf2d1e (diff)
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".
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hclspecsuite/runner.go3
1 files changed, 2 insertions, 1 deletions
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,