packer/hcl2template/testdata/sources
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 hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
duplicate.pkr.hcl build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
nonexistent.pkr.hcl command/build: warn and exit when nothing to build 2022-09-13 15:58:28 -04:00
nonexistent_used.pkr.hcl rename all things 'inexist[e|a]nt' to 'nonexistent' & fix tests (#11325) 2021-10-11 15:48:51 +02:00
unnamed.pkr.hcl build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
untyped.pkr.hcl build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00