packer/hcl2template/testdata/build
Lucas Bajolet c0e7e7bd3c hcl2: report error on build without sources
When a template describes a build block without a source reference, the
build should be considered invalid as we won't have a CoreBuild produced
as a result of the need to have both.

In current versions of Packer, this will produce an error message
hinting that nothing will happen because of the lack of either build or
source block.

This commit takes the defined block, and points out to it as missing a
source block as being the reason why nothing is happening, making it
clearer what is required for an HCL2 build to be processed.
2022-09-30 15:39:27 -04:00
..
basic.pkr.hcl add test 2020-09-30 12:02:52 +02:00
invalid_build_name_variable.pkr.hcl Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421) 2021-12-01 11:35:51 +01:00
invalid_source_reference.pkr.hcl fix crash when build.sources is set to an invalid name 2020-01-06 14:29:43 +01:00
named.pkr.hcl Add test. 2020-05-17 23:27:06 -07:00
post-processor_build_name_interpolation.pkr.hcl Move to using ectx to preload build names (#11432) 2021-12-07 12:24:12 +01:00
post-processor_nonexistent.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
post-processor_onlyexcept.pkr.hcl Add complete HCL2 examples + allow to name a singular build.source blocks (#9490) 2020-07-02 11:07:59 +02:00
post-processor_untyped.pkr.hcl build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
provisioner_build_name_interpolation.pkr.hcl Move to using ectx to preload build names (#11432) 2021-12-07 12:24:12 +01:00
provisioner_nonexistent.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
provisioner_onlyexcept.pkr.hcl Add complete HCL2 examples + allow to name a singular build.source blocks (#9490) 2020-07-02 11:07:59 +02:00
provisioner_packer_version_interpolation.pkr.hcl Fix {{packer_version}} interpolation regression (#11200) 2021-08-12 10:55:32 +02:00
provisioner_paused_before_retry.pkr.hcl Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
provisioner_timeout.pkr.hcl Add RetriedProvisioner to allow retry provisioners (#9061) 2020-04-16 11:58:54 +02:00
provisioner_untyped.pkr.hcl build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
two-error-cleanup-provisioner.pkr.hcl Add error-cleanup-provisioner to HCL2 (#10604) 2021-02-11 10:23:15 +01:00
variables.pkr.hcl Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421) 2021-12-01 11:35:51 +01:00