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

modules: Add a way to forward submodules definitions to the parent. #30991

Closed
wants to merge 1 commit into from

Conversation

nbp
Copy link
Member

@nbp nbp commented Oct 30, 2017

Motivation for this change

This change is made to fill a gap in the module system, which is the ability to forward the content of a submodule option to the parent module system.

The motivation for this change comes from the last rewrite of the httpd services that I made (not commited), which are extending the extraConfig of httpd, by re-defining the merge logic.

This change avoid the merge logic duplication by forwarding the definitions of the submodules to the parent module. Thus, the merge logic does not have to be manually written to merge the content of the different submodules in the parent module. More over, this modification takes the option definition before they are being processed by the merge & apply functions, which prevent issues in case of non-re-entrant merge functions.

Things done
  • Built on platform
    • NixOS
  • Tested via library tests

@mmahut
Copy link
Member

mmahut commented Aug 1, 2019

Any update on this pull request?

@mmahut
Copy link
Member

mmahut commented Aug 19, 2019

Closing due to lack of activity, feel free to reopen this if needed.

@mmahut mmahut closed this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants