packer/hcl2template/testdata/variables
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
..
complicated hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
duplicate_locals Sensitive locals (#10509) 2021-01-26 10:21:44 +01:00
validation hcl2: report error on build without sources 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_variable.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
duplicate_variables.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
empty.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
foo-string.variable.pkr.hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
invalid_default.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
provisioner_variable_decoding.pkr.hcl Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
recursive_locals.pkr.hcl Fix HCL2 local variables decoding to allow local usage within another local in the same locals block (#8755) 2020-02-21 12:12:30 +01:00
set-foo-too-wee.hcl add more test for var files 2020-03-12 17:08:53 +01:00
unknown_key.pkr.hcl all variables must have a value. 2020-03-09 17:25:56 +01:00
unset_unused_string_variable.pkr.hcl WIP 2020-03-03 11:15:56 +01:00
unset_used_string_variable.pkr.hcl update tests 2020-03-04 13:01:18 +01:00