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

nixos: networking cleanup #11529

Closed
wants to merge 1 commit into from
Closed

Conversation

oxij
Copy link
Member

@oxij oxij commented Dec 7, 2015

NixOS networking module is a mess. I've been trying to do something about it for a while, and I think I did simplify it somewhat with this patch set, but it has one problem: deprecating/renaming options in submodules doesn't work.

mkRemovedOptionModule and mkRenamedOptionModule generate a warning inside a submodule, but this warning never get's out to the top-level warnings.

I tried to implement something that could possibly work, but historically all my attempts had failed. NixOS recently introduced mkRemovedOptionModule and friends, and I tried to use it, but it did not suffice too.

I want users that define subnetMask to get errors, and to implement that behavior without top-level asserts, but all my attempts are either completely ignored in the process of evaluation because these errors don't get computed/propagated to top-level or subnetMask asserts produce errors even when it's not defined.

Same problem with *address and *prefixLength options.

I actually have a continuation of this patch set that then breaks networking into a series of independent modules and adds new useful assertions, but I didn't merge it with the current master yet, and don't want to do it until this gets to work properly.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @wkennington, @edolstra and @offlinehacker to be potential reviewers

@copumpkin
Copy link
Member

cc @nbp for module system questions

@jagajaga
Copy link
Member

jagajaga commented Jan 7, 2016

Pinging everyone for the help.

@abbradar
Copy link
Member

abbradar commented Oct 1, 2016

Maybe open a separate issue for the submodule warnings problem? At least it would be discoverable separately.

@oxij oxij closed this Aug 29, 2017
@oxij oxij deleted the nixos-networking-cleanup branch August 29, 2017 11:20
@oxij
Copy link
Member Author

oxij commented Dec 5, 2017

Reopening for a rebased version.

@oxij oxij reopened this Dec 5, 2017
@oxij oxij changed the title [WIP, Needs Help] nixos: networking cleanup nixos: networking cleanup Dec 5, 2017
@oxij
Copy link
Member Author

oxij commented Dec 5, 2017 via email

@7c6f434c
Copy link
Member

Hm, is this superseded by #27688 for mainline NixOS?

@oxij
Copy link
Member Author

oxij commented Feb 19, 2018

Yep. Closing.

@oxij oxij closed this Feb 19, 2018
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

9 participants