packer/hcl2template
Lucas Bajolet dff49df129 hcl2template: check bucket name at parse-time
Not validating the bucket's name during parse leads to configurations
being marked as valid, even if the bucket name is not, which will fail
during a real build afterwards.

To avoid this problem and fail with an error as quickly as possible, we
add a check during parsing, so that it gets reported for validate as
well.
2024-01-31 09:56:57 -05:00
..
addrs [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
fixtures hcl2: fix crash on malformed overrides (#11881) 2022-07-20 14:30:49 -04:00
function hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
internal [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
repl [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
shim [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
testdata hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
common_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
components.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
decode.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
docs.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
formatter.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
formatter_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00
functions.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
parser.go hcl2template: remove value validation for locals 2023-09-06 12:07:37 -04:00
plugin.go packer: link to docs if a component is missing 2023-11-22 16:10:15 -05:00
types.build.from.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.hcp_packer_registry.go hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
types.build.hcp_packer_registry_test.go hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
types.build.post-processor.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.provisioners.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.provisioners_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.datasource.go hcl2template: simplify startDatasource function 2023-10-05 10:31:04 -04:00
types.datasource_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.hcl_post-processor.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.hcl_provisioner.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.hcl_ref.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.packer_config.go Remove repeated code 2024-01-26 14:31:04 -05:00
types.packer_config_test.go hcl2template: check bucket name at parse-time 2024-01-31 09:56:57 -05:00
types.required_plugins.go packer: remove implicit required plugins 2023-08-17 16:51:49 -04:00
types.required_plugins_test.go packer: remove implicit required plugins 2023-08-17 16:51:49 -04:00
types.source.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.source_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.variables.go hcl2: don't show an empty source on var errors 2023-11-28 12:53:23 -05:00
types.variables_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
utils.go hcl2template: fix func to get vars from a config 2023-10-05 10:31:04 -04:00
version.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
version_required.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00