packer-cn/hcl2template
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost.

This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too.

fix #9478
2020-07-24 10:58:03 +02:00
..
function Revert "Add pwd function to HCL" 2020-06-08 14:59:27 +02:00
internal WIP 2020-07-02 15:56:49 +02:00
repl packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
shim packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
testdata add test 2020-07-06 11:48:39 +02:00
common_test.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
decode.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
docs.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
functions.go Revert "Add pwd function to HCL" 2020-06-08 14:59:27 +02:00
parser.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
types.build.from.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
types.build.go HCL2: allow to describe a build block 2020-06-23 11:58:34 +02:00
types.build.post-processor.go avoid passing generatedVars down during first prepare 2020-07-06 15:14:17 +02:00
types.build.provisioners.go avoid passing generatedVars down during first prepare 2020-07-06 15:14:17 +02:00
types.build_test.go add hcl2 post processor type that reprepares itself 2020-07-06 10:32:39 +02:00
types.hcl_post-processor.go post-processor/provisioner: handle uint64 buildvars 2020-07-15 18:22:24 +02:00
types.hcl_provisioner.go post-processor/provisioner: handle uint64 buildvars 2020-07-15 18:22:24 +02:00
types.hcl_ref.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
types.kv.go make sure keyvalue and namevalue filters are using the same naming as the service being used 2020-04-16 17:22:13 +02:00
types.kv.hcl2spec.go HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
types.packer_config.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
types.packer_config_test.go add hcl2 post processor type that reprepares itself 2020-07-06 10:32:39 +02:00
types.source.go pass source name from local source name too 2020-07-06 16:07:29 +02:00
types.source_test.go Allow to override some source fields from the build section 2020-05-25 17:09:37 +02:00
types.variables.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
types.variables_test.go Add complete HCL2 examples + allow to name a singular build.source blocks (#9490) 2020-07-02 11:07:59 +02:00
utils.go packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00