Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.0 Smarter Mixin Merges #1003

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

mkarlesky
Copy link
Member

  1. If :defines or :flags config or mixin conventions mismatch (array vs. matcher hash), the array is promoted to the hash-style * matcher automatically with a notice logging this modification.
  2. An option has been added to the use of deep_merge() to handle the case of merging mixin single values into config arrays (typically a single string into an array of strings).
  3. If some oddball edge case slips through both of the above, Ceedling now logs a warning explaining which mixin value will clobber a config value in a merge.

- Automatically promote mixin or config :defines and :flags lists to `*` matchers if mixin and config conventions do not match.
- Enabled `:extend_existing_arrays` for `deep_merge()` to handle config / mixin merge cases of a value as a single string merged with an array of strings.
- Added merge warnings to log any oddball edge cases where a mixin value would silently clobber a config value
- Spoke to the design intent and recommendation to think in terms of additive merges
- Clarified merge rules
- Limited reorganization of headings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant