Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Conversation

@ksitnik-tc
Copy link

Previously, when multiple variable files were provided, nested objects would be completely overwritten by subsequent files instead of being merged. This change implements proper deep merging of nested structures.

Changes:

  • Add deepMerge() function for recursive map merging
  • Add convertYAMLMap() functions to handle YAML parsing edge cases
  • Replace simple key assignment with deep merge in variable processing
  • Add comprehensive tests for YAML, JSON, and Terraform variable files
  • Test cases verify proper merging of nested database, cache, and logging configs

Fixes variable file overwriting bug where providing two variable files resulted in loss of nested configuration from the first file.

🤖 Generated with Claude Code

Previously, when multiple variable files were provided, nested objects
would be completely overwritten by subsequent files instead of being
merged. This change implements proper deep merging of nested structures.

Changes:
- Add deepMerge() function for recursive map merging
- Add convertYAMLMap() functions to handle YAML parsing edge cases
- Replace simple key assignment with deep merge in variable processing
- Add comprehensive tests for YAML, JSON, and Terraform variable files
- Test cases verify proper merging of nested database, cache, and logging configs

Fixes variable file overwriting bug where providing two variable files
resulted in loss of nested configuration from the first file.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Jun 20, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant