opentofu/configs
Martin Atkins cc38e91612 configs: Implementation of mergeBody
mergeBody is a hcl.Body implementation that deals with our override file
merging behavior for the portions of the configuration that are not
processed until full eval time.

Mimicking the behavior of our old config merge implementation from the
"config" package, the rules here are:

- Attributes in the override body hide attributes of the same name in
  the base body.
- Any block in the override body hides all blocks with the same type name
  that appear in the base body.

This is tested by a new test for the overriding of module arguments, which
asserts the correct behavior of the merged body as part of its work.
2018-02-15 15:56:38 -08:00
..
test-fixtures configs: Implementation of mergeBody 2018-02-15 15:56:38 -08:00
backend.go configs: Parser.LoadConfigFile 2018-02-15 15:56:37 -08:00
config.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
depends_on.go configs: Parser.LoadConfigFile 2018-02-15 15:56:37 -08:00
doc.go configs: new package for HCL2-based configuration 2018-02-15 15:10:01 -08:00
module_call.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
module_merge_body.go configs: Implementation of mergeBody 2018-02-15 15:56:38 -08:00
module_merge_test.go configs: Implementation of mergeBody 2018-02-15 15:56:38 -08:00
module_merge.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
module.go configs: Parser.LoadConfigDir 2018-02-15 15:56:37 -08:00
named_values.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
parser_config_dir_test.go configs: Parser.LoadConfigDir 2018-02-15 15:56:37 -08:00
parser_config_dir.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
parser_config_test.go configs: Another simple test for _invalid_ config files 2018-02-15 15:56:37 -08:00
parser_config.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
parser_test.go configs: Implementation of mergeBody 2018-02-15 15:56:38 -08:00
parser_values_test.go configs: Parser.LoadValuesFile 2018-02-15 15:56:37 -08:00
parser_values.go configs: Parser.LoadValuesFile 2018-02-15 15:56:37 -08:00
parser.go configs: Parser type 2018-02-15 15:56:36 -08:00
provider.go configs: Parser.LoadConfigDir 2018-02-15 15:56:37 -08:00
provisioner.go configs: Parser.LoadConfigFile 2018-02-15 15:56:37 -08:00
provisioneronfailure_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
provisionerwhen_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
resource.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
util.go configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
variable_type_hint.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
variabletypehint_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
version_constraint.go configs: Parser.LoadConfigFile 2018-02-15 15:56:37 -08:00