packer/hcl2template/testdata
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
..
build hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
build.pkr.hcl HCL2: when we see a map generate an attribute spec instead of a block spec (#9035) 2020-04-14 16:05:13 +02:00
communicator HCL2: when we see a map generate an attribute spec instead of a block spec (#9035) 2020-04-14 16:05:13 +02:00
complete add tests, and simplify code 2021-10-11 10:29:36 -07:00
datasources hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
empty better empty folder test 2020-01-06 16:09:44 +01:00
format command/fmt: Ensure all variable files ending in .pkrvars.hcl get formatted (#10377) 2020-12-14 10:29:58 -05:00
hcp_par parser: extract HCP logic out of the HCL parser 2022-08-12 11:54:21 -04:00
init tests and fixes 2021-02-15 13:47:39 +01:00
sources hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
unknown remove unecessary inexistant block panic + add test 2020-01-06 16:56:42 +01:00
variables hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00