You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the library only supports merging hcl Blocks and nested Blocks recursively. When it comes to attributes (in setAttrs), this is all or nothing, which means both objects and arrays are replaced entirely w/o attempting to merge.
Attributes are represented as a list of hcl Tokens, so in order to merge attributes, we need to be able to parse the list of Tokens to make sense of the type of value we are dealing with.
Acceptance criteria:
Be able to recursively merge nested objects
Any MR should have this (or a similar) test case added to hcl_test.go:
Currently the library only supports merging hcl Blocks and nested Blocks recursively. When it comes to attributes (in
setAttrs
), this is all or nothing, which means both objects and arrays are replaced entirely w/o attempting to merge.Attributes are represented as a list of hcl Tokens, so in order to merge attributes, we need to be able to parse the list of Tokens to make sense of the type of value we are dealing with.
Acceptance criteria:
hcl_test.go
:The text was updated successfully, but these errors were encountered: