packer-cn/packer
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
..
plugin Merge remote-tracking branch 'origin/master' into sharing_info 2019-12-17 11:57:09 +01:00
rpc Merge remote-tracking branch 'origin/master' into sharing_info 2019-12-17 11:57:09 +01:00
test-fixtures Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
tmp
artifact.go
artifact_mock.go Fix gosimple S1005 linting issue (#8870) 2020-03-11 10:30:08 +01:00
artifact_test.go Fix gosimple S1005 linting issue (#8870) 2020-03-11 10:30:08 +01:00
build.go Revert "Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)" 2020-07-02 15:07:29 +02:00
build_test.go Avoid calling CoreBuild.Prepare(...) for HCL2 templates (#8742) 2020-02-14 17:39:32 +01:00
builder.go fix typo 2020-07-09 16:21:21 +03:00
builder_mock.go add tests for info sharing 2019-12-17 13:41:48 -08:00
builder_mock.hcl2spec.go HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
builder_test.go
cache.go
cache_test.go
communicator.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
communicator_mock.go
communicator_mock_test.go
communicator_test.go
config_file.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
config_file_test.go packer: remove unused test variable 2019-11-04 12:53:16 -08:00
config_file_unix.go
config_file_windows.go
core.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
core_test.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
fixconfigmode_enumer.go fix enum 2020-05-08 16:54:44 +02:00
hcl2spec.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
hook.go get data sharing to a working state with the powershell provisioner 2019-12-11 15:43:38 -08:00
hook_mock.go
hook_test.go
logs.go
maps.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
multi_error.go
multi_error_test.go
packer_test.go
post_processor.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
post_processor_mock.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
progressbar.go
progressbar_noop.go
progressbar_solaris.go
progressbar_test.go
provisioner.go Update provisioner.go 2020-07-07 11:52:08 +02:00
provisioner_mock.go Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
provisioner_test.go Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
provisioner_timeout.go change all provision func signatures to use map[string]interface{} 2019-12-12 15:38:32 -08:00
run_interfaces.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
telemetry.go
telemetry_test.go
testing.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
tty.go
ui.go make sure the no-op progress bar gets used for machine readable uis 2020-06-17 11:57:12 -07:00
ui_test.go