packer/command/test-fixtures
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-name-and-type add build.name to hcl code (#10114) 2020-10-16 10:57:42 +02:00
build-only Fix force flag for hcl2 provisioners and post-processors (#10571) 2021-02-05 10:57:14 +01:00
build-variable-sharing Revert "Share build info with Provisioner and Post-Processor via HCL2 variables (#9444)" 2020-07-02 15:07:29 +02:00
cleanup-script rename option to error-cleanup-privisoner, which I think is clearer 2019-09-25 13:43:29 -07:00
fix command/fix: validate resulting template [GH-2075] 2015-06-13 13:56:09 -04:00
fix-invalid command/fix: validate resulting template [GH-2075] 2015-06-13 13:56:09 -04:00
fmt command/fmt: Ensure all variable files ending in .pkrvars.hcl get formatted (#10377) 2020-12-14 10:29:58 -05:00
hcl hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
hcl-inspect-with-sensitive-vars add tests 2020-10-02 10:49:21 +02:00
hcl-only-except hcl work on only/except (#9454) 2020-06-23 10:53:16 +02:00
hcl2_upgrade hcl2_upgrade: special case: vsphere fix (#11216) 2021-08-25 14:20:08 +02:00
hcp parser: extract HCP logic out of the HCL parser 2022-08-12 11:54:21 -04:00
inspect add tests for unknown values 2020-09-01 15:28:16 +02:00
parallel add tests for cancellation while building 2019-05-06 15:07:57 +02:00
provisioners add tests and update override example 2020-08-14 11:22:51 +02:00
timeout test provisionning timeout 2019-04-08 20:09:21 +02:00
validate feat: print all locals errors when there is a circular error (#11527) 2022-01-27 14:40:45 +01:00
validate-invalid command/validate: Add support for HCL2 configuration files 2020-06-05 14:24:39 -04:00
var-arg test unknown variables and locals 2020-09-01 11:59:07 +02:00
version_req hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00