packer-cn/command
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
..
test-fixtures refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
build.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
build_cancellation_test.go fix tests 2020-05-08 17:46:33 +02:00
build_cleanup_script_test.go fix tests 2020-05-08 17:46:33 +02:00
build_parallel_test.go fix tests 2020-05-08 17:46:33 +02:00
build_test.go core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622) 2020-07-23 09:25:07 +02:00
build_timeout_test.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
build_windows_test.go Update build_windows_test.go 2020-07-07 12:00:36 +02:00
cli.go hcl2: inspect command 2020-06-23 11:58:57 +02:00
command_test.go add a complete tests for builder variables + only/except 2020-07-06 17:01:55 +02:00
configtype_enumer.go packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
console.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
console_test.go core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622) 2020-07-23 09:25:07 +02:00
core_wrapper.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
exec_test.go core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622) 2020-07-23 09:25:07 +02:00
fix.go update fix command with new synthax 2020-05-12 11:33:44 +02:00
fix_test.go Move fixer test to fix package 2019-07-24 18:04:17 +01:00
inspect.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
inspect_test.go add thorough test 2020-06-23 15:40:54 +02:00
meta.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
plugin.go Add yandex-import post-processor 2020-07-08 22:01:52 +03:00
signal.go refactor term interrupts & have RunContext take a conf struct now 2020-05-08 12:05:14 +02:00
utils.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
validate.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
validate_test.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
version.go packer.io prefix removal, html extension remove for in-code errors 2020-04-07 17:53:22 -04:00
version_test.go command: version tests 2014-10-27 20:58:44 -07:00