summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-12-17 21:50:51 +0100
committerSilvan Mosberger <contact@infinisil.com>2020-12-18 03:34:39 +0100
commita6a70d14a9f7b885e65a51c5e6bd02145884ee50 (patch)
treecc5dbc58d2bab3b55b656587ee1b46ff285873cc /lib
parent767d80099cd8418b3cc7338eb24f9217fedb6449 (diff)
lib/modules: Prefix mkRemovedOptionModule & co. check names
To avoid name clashes Co-authored-by: Robert Hensing <robert@roberthensing.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/modules.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 468c373d6aa4..5548c5f7049c 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -888,7 +888,7 @@ rec {
});
config._module.checks =
let opt = getAttrFromPath optionName options; in {
- ${showOption optionName} = lib.mkIf opt.isDefined {
+ ${"removed-" + showOption optionName} = lib.mkIf opt.isDefined {
message = ''
The option definition `${showOption optionName}' in ${showFiles opt.files} no longer has any effect; please remove it.
${replacementInstructions}
@@ -960,7 +960,7 @@ rec {
let val = getAttrFromPath f config;
opt = getAttrFromPath f options;
in {
- ${showOption f} = lib.mkIf (val != "_mkMergedOptionModule") {
+ ${"merged" + showOption f} = lib.mkIf (val != "_mkMergedOptionModule") {
type = "warning";
message = "The option `${showOption f}' defined in ${showFiles opt.files} has been changed to `${showOption to}' that has a different type. Please read `${showOption to}' documentation and update your configuration accordingly.";
};
@@ -1025,7 +1025,7 @@ rec {
});
config = mkMerge [
{
- _module.checks.${showOption from} = mkIf (warn && fromOpt.isDefined) {
+ _module.checks.${"renamed-" + showOption from} = mkIf (warn && fromOpt.isDefined) {
type = "warning";
message = "The option `${showOption from}' defined in ${showFiles fromOpt.files} has been renamed to `${showOption to}'.";
};