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".
This commit is contained in:
parent
c366498686
commit
791068cd07
@ -15,8 +15,8 @@ import (
|
|||||||
"github.com/zclconf/go-cty/cty/convert"
|
"github.com/zclconf/go-cty/cty/convert"
|
||||||
ctyjson "github.com/zclconf/go-cty/cty/json"
|
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"
|
||||||
|
"github.com/hashicorp/hcl/v2/ext/typeexpr"
|
||||||
"github.com/hashicorp/hcl/v2/hclparse"
|
"github.com/hashicorp/hcl/v2/hclparse"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -318,6 +318,7 @@ func (r *Runner) hcldecTransform(specFile, inputFile string) (cty.Value, hcl.Dia
|
|||||||
"--spec=" + specFile,
|
"--spec=" + specFile,
|
||||||
"--diags=json",
|
"--diags=json",
|
||||||
"--with-type",
|
"--with-type",
|
||||||
|
"--keep-nulls",
|
||||||
inputFile,
|
inputFile,
|
||||||
},
|
},
|
||||||
Stdout: &outBuffer,
|
Stdout: &outBuffer,
|
||||||
|
Loading…
Reference in New Issue
Block a user