packer/hcl2template/testdata/variables/validation
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
..
valid_map add VariableAssignment struct that help describe an input var assignment 2020-11-02 15:22:29 +01:00
invalid_default.pkr.hcl add failing test case 2020-10-30 15:40:31 +01:00
valid.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00