packer/packer_test/templates
Lucas Bajolet 36e43e30ee hcl2template: detect duplicate locals during parse
Previously duplicate detection for local variables happened during
`Initialise`, through a call to `checkForDuplicateLocalDefinition`.

This works in a majority of cases, but for commands like `console`, this
was not detected as the return diagnostics for `Initialise` are ignored.

That check can be done as early as during parsing however, as the names
of blocks are not dynamic in the slightest (no interpolation possible),
so we move that detection logic into `Parse`, so that the behaviour is
coherent between all commands.
2024-06-17 16:51:58 -04:00
..
init Add test cases for init command 2024-06-10 09:59:32 -04:00
locals_duplicate.pkr.hcl hcl2template: detect duplicate locals during parse 2024-06-17 16:51:58 -04:00
locals_no_order.pkr.hcl hcl2template: recursively evaluate local variables 2024-06-17 16:51:58 -04:00
pin_1.0.9.pkr.hcl Move into a packer_test pkg for black-box testing 2024-06-10 09:59:32 -04:00
pre-release_constraint.pkr.hcl packer_test: add remote install with pre-rel test 2024-06-10 09:59:32 -04:00
simple.json Move into a packer_test pkg for black-box testing 2024-06-10 09:59:32 -04:00
simple.pkr.hcl Move into a packer_test pkg for black-box testing 2024-06-10 09:59:32 -04:00