packer-cn/hcl2template
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
Before change
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
Error: Cannot tell whether /tmp/unformatted.pkrvars.hcl contains HCL2 configuration data

⇶  echo $?
1
```

After fix
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
/tmp/unformatted.pkrvars.hcl

⇶  echo $?
3

⇶  packer fmt -check command/test-fixtures/fmt
command/test-fixtures/fmt/unformatted.pkr.hcl
command/test-fixtures/fmt/unformatted.auto.pkrvars.hcl
command/test-fixtures/fmt/unformatted.pkrvars.hcl

```
2020-12-14 10:29:58 -05:00
..
addrs Referenceable: explain a bit more of the whys 2020-11-04 13:21:41 +01:00
function update tests and website and generated partials to reflect new package format 2020-11-17 10:36:01 -08:00
internal move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
repl packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
shim JSON to HCL2 (minimal best-effort) transpiler (#9659) 2020-08-25 10:51:43 +02:00
testdata command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
common_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01: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
formatter.go Add packer fmt command (#10225) 2020-11-11 11:49:39 -05:00
formatter_test.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
functions.go Fix 2nd binding of string reverse for list reverse (#10380) 2020-12-14 10:57:08 +01:00
parser.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
types.build.from.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
types.build.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
types.build.post-processor.go move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
types.build.provisioners.go move provisioner interface into sdk 2020-12-01 14:25:14 -08:00
types.build_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.hcl_post-processor.go move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
types.hcl_provisioner.go move provisioner interface into sdk 2020-12-01 14:25:14 -08:00
types.hcl_ref.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
types.packer_config.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.packer_config_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.source.go extract builder interface to sdk 2020-12-01 13:42:42 -08:00
types.source_test.go move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
types.variables.go HCL2: allow calling env as input var default value (#10240) 2020-11-11 11:27:32 +01:00
types.variables_test.go command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377) 2020-12-14 10:29:58 -05:00
utils.go packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
version.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
version_required.go refactor packer version out of hcltemplate code. 2020-11-09 12:29:53 -08:00