packer/hcl2template
Wilken Rivera 263821ac25 hcl2template/functions: Add Non-null refinements for various functions
cty's new "refinements" concept allows us to reduce the range of unknown
values from our functions. This initial changeset focuses only on
declaring which functions are guaranteed to return a non-null result,
which is a helpful baseline refinement because it allows "== null" and
"!= null" tests to produce known results even when the given value is
otherwise unknown.

This commit also includes some updates to test results that are now
refined based on cty's own built-in refinement behaviors, just as a
result of us having updated cty in the previous commit.
2023-11-29 12:28:16 -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 hcl2: report error on build without sources 2022-09-30 15:39:27 -04: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 [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
types.build.hcp_packer_registry_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07: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 hcl2template: simplify startDatasource function 2023-10-05 10:31:04 -04:00
types.packer_config_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07: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