terraform/internal/configs
Kristin Laemmert 3acb5e2841
configs: add decodeMovedBlock behind a locked gate. (#28973)
This PR adds decoding for the upcoming "moved" blocks in configuration. This code is gated behind an experiment called EverythingIsAPlan, but the experiment is not registered as an active experiment, so it will never run (there is a test in place which will fail if the experiment is ever registered).

This also adds a new function to the Targetable interface, AddrType, to simplifying comparing two addrs.Targetable.

There is some validation missing still: this does not (yet) descend into resources to see if the actual resource types are the same (I've put this off in part because we will eventually need the provider schema to verify aliased resources, so I suspect this validation will have to happen later on).
2021-06-21 10:53:16 -04:00
..
configload Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
configschema Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
hcl2shim Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
testdata configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
backend.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
compat_shim.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
config.go configs: EntersNewPackage methods for descendant modules 2021-06-03 08:50:34 -07:00
config_build.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
config_build_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
config_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
depends_on.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
doc.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
escaping_blocks_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
experiments.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
experiments_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
module.go configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
module_call.go configs: EntersNewPackage methods for descendant modules 2021-06-03 08:50:34 -07:00
module_call_test.go addrs: ModuleRegistryPackage for representing module registry packages 2021-06-03 08:50:34 -07:00
module_merge.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
module_merge_body.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
module_merge_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
module_test.go addrs: Rename DefaultRegistryHost to DefaultProviderRegistryHost 2021-06-03 08:50:34 -07:00
moved.go configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
moved_test.go configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
named_values.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
named_values_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser_config.go configs: add decodeMovedBlock behind a locked gate. (#28973) 2021-06-21 10:53:16 -04:00
parser_config_dir.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser_config_dir_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser_config_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser_test.go Refactoring of module source addresses and module installation 2021-06-03 08:50:34 -07:00
parser_values.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
parser_values_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provider.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provider_meta.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provider_requirements.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provider_requirements_test.go addrs: Rename DefaultRegistryHost to DefaultProviderRegistryHost 2021-06-03 08:50:34 -07:00
provider_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provider_validation.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provisioner.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provisioneronfailure_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
provisionerwhen_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
resource.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
synth_body.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
synth_body_test.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
util.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
variable_type_hint.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
variabletypehint_string.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
version_constraint.go Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00