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

Option to recursively merge content of multiple config.yml files #497

Open
NovaNekmit opened this issue Jan 27, 2025 · 0 comments
Open

Option to recursively merge content of multiple config.yml files #497

NovaNekmit opened this issue Jan 27, 2025 · 0 comments

Comments

@NovaNekmit
Copy link
Contributor

NovaNekmit commented Jan 27, 2025

Currently, merge! is used for every supplied config file, which works good for most things, but "appending" to treat_as or unity_helpers won't work, which prevents effective composing.

Another command line flag (maybe -m for "merge", or -a for "append"), which recurses into the the options to append arrays and merge hashes (instead of overwriting) would help with that.

Alternatively, a special value in the "overlay file" that the merge logic interprets as "keep existing values" would also work.

For context, I am working with a modular project and want to avoid "leaking" types into other modules.

My current workaround is supplying --unity-helpers=shared/unity_helpers.h;module_a/unity_helpers.h as command line argument, and using macros inside the unity_helper in place of treat_as.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant