packer/hcl2template
Lucas Bajolet 61c810e720 command: rework HCP-related error messages
The HCP error messages were sometimes a bit terse in terms of the
information it bubbles up to the user.
This made them useful for people who already knew what to look for, but
newcomers would almost certainly be lost because of the lack of
information in those.

To improve on this situation, we reword most of those error messages in
this commit.
2022-10-21 10:32:45 -04:00
..
addrs addrs: remove Plugin.ForDisplay func, the String one does the job 2021-02-15 15:32:42 +01:00
fixtures hcl2: fix crash on malformed overrides (#11881) 2022-07-20 14:30:49 -04:00
function hcl2_upgrade: special case: vsphere fix (#11216) 2021-08-25 14:20:08 +02:00
internal Use packer-sdc in packer + remove mapstructure-to-hcl2 & struct-markdown (#10913) 2021-04-16 11:52:03 +02:00
repl packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
shim Use packer-sdc in packer + remove mapstructure-to-hcl2 & struct-markdown (#10913) 2021-04-16 11:52:03 +02:00
testdata hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
common_test.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
components.go Implicit required_plugin blocks (#10732) 2021-03-24 11:31:39 +01:00
decode.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
docs.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
formatter.go fix: print unchanged formatted file when using stdin (#11047) 2021-06-03 14:02:42 +02:00
formatter_test.go un-remove tests 2021-03-15 12:00:19 +01:00
functions.go hcl2_upgrade: special case: vsphere fix (#11216) 2021-08-25 14:20:08 +02:00
parser.go parser: extract HCP logic out of the HCL parser 2022-08-12 11:54:21 -04:00
plugin.go Allow to have dynamic blocks in a build block + tests (#10825) 2021-03-30 15:53:04 +02:00
registry.go command: rework HCP-related error messages 2022-10-21 10:32:45 -04:00
types.build.from.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
types.build.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
types.build.hcp_packer_registry.go Associate Packer build to HCP Packer parent iteration (#11832) 2022-06-10 11:39:56 -04:00
types.build.hcp_packer_registry_test.go test: use T.Setenv to set env vars in tests 2022-09-20 14:54:20 -04:00
types.build.post-processor.go Move to using ectx to preload build names (#11432) 2021-12-07 12:24:12 +01:00
types.build.provisioners.go hcl2: fix crash on malformed overrides (#11881) 2022-07-20 14:30:49 -04:00
types.build.provisioners_test.go hcl2: fix crash on malformed overrides (#11881) 2022-07-20 14:30:49 -04:00
types.build_test.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
types.datasource.go remove unnecessary complexity 2021-09-07 09:21:00 -07:00
types.datasource_test.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
types.hcl_post-processor.go Allow to use build variables in a post processor (#11323) 2021-10-11 10:17:34 -04:00
types.hcl_provisioner.go create util function in hcl2 template that will load config values into hcl values without panicing if it finds something it cannot handle 2021-01-25 12:25:41 -08:00
types.hcl_ref.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
types.packer_config.go command/build: warn and exit when nothing to build 2022-09-13 15:58:28 -04:00
types.packer_config_test.go add tests, and simplify code 2021-10-11 10:29:36 -07:00
types.required_plugins.go Implicit required_plugin blocks (#10732) 2021-03-24 11:31:39 +01:00
types.required_plugins_test.go Implicit required_plugin blocks (#10732) 2021-03-24 11:31:39 +01:00
types.source.go add tests, and simplify code 2021-10-11 10:29:36 -07:00
types.source_test.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
types.variables.go hcl2: add example for undefined variable set warn 2022-09-28 14:51:28 -04:00
types.variables_test.go hcl2: report error on build without sources 2022-09-30 15:39:27 -04:00
utils.go Simplify error message when config file can't be "stat'd" (#10763) 2021-03-15 14:07:07 +01:00
version.go regenerate 2021-01-15 11:59:36 -08:00
version_required.go refactor packer version out of hcltemplate code. 2020-11-09 12:29:53 -08:00