Add comment about limitation on __internal.check

This commit is contained in:
Shea Levy 2014-05-07 16:43:18 -04:00 committed by Nicolas B. Pierron
parent f69ce50529
commit 772b8869d2

View file

@ -61,6 +61,10 @@ rec {
# Traverse options and extract the option values into the final
# config set. At the same time, check whether all option
# definitions have matching declarations.
# !!! __internal.check's value can't depend on any other config values
# without an infinite recursion. One way around this is to make the
# 'config' passed around to the modules be unconditionally unchecked,
# and only do the check in 'result'.
config = yieldConfig prefix options;
yieldConfig = prefix: set:
let res = removeAttrs (mapAttrs (n: v: