packer/command/test-fixtures
Lucas Bajolet ea1e798c47 fmt: print parse errors on error
The fmt command reformats HCL2 templates, provided it can parse the file
and reformat its contents according to the standards set by the HCL
library's formatters.

However, if the file is malformed for some reason, the command will fail
with a parse error, but while the parse error message is shown, the
actual errors in the template(s) are not forwarded, making it hard for
users to understand what went wrong with the contents of the file
they're trying to format.

In order to be more helpful with those errors, we now forward those
parsing errors to the UI.
2024-03-07 14:41:19 -05: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
fmt_errs fmt: print parse errors on error 2024-03-07 14:41:19 -05:00
hcl hcl2: don't warn on excluded post-processor (#12187) 2023-01-11 14:30:02 -05: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: add required_plugins in out template 2023-07-18 16:04:55 -04: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 hcp: remove superfluous return value on GetBuilds 2022-12-22 16:06:34 -05:00
timeout test provisionning timeout 2019-04-08 20:09:21 +02:00
validate core: Update validation options for undeclared variables (#12104) 2022-11-14 17:06:45 -05: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