lib.mkRenamedOptionModuleWith: Remove warnWhenRead
Let's keep things simple and not poke holes in the improved migration process.
This commit is contained in:
parent
ca8fa3bb6e
commit
1eb627c4cf
@ -916,19 +916,11 @@ rec {
|
|||||||
*/
|
*/
|
||||||
sinceRelease,
|
sinceRelease,
|
||||||
|
|
||||||
/*
|
|
||||||
Options intended for reading by user modules/configuration should set this
|
|
||||||
to false.
|
|
||||||
|
|
||||||
Usually the user modules don't read the option and we want to hold nixpkgs
|
|
||||||
itself to a high standard immediately.
|
|
||||||
*/
|
|
||||||
warnWhenRead ? true
|
|
||||||
}: doRename {
|
}: doRename {
|
||||||
inherit from to;
|
inherit from to;
|
||||||
visible = false;
|
visible = false;
|
||||||
warn = lib.isInOldestRelease sinceRelease;
|
warn = lib.isInOldestRelease sinceRelease;
|
||||||
use = lib.warnIf (warnWhenRead || lib.isInOldestRelease sinceRelease)
|
use = lib.warnIf (lib.isInOldestRelease sinceRelease)
|
||||||
"Obsolete option `${showOption from}' is used. It was renamed to `${showOption to}'.";
|
"Obsolete option `${showOption from}' is used. It was renamed to `${showOption to}'.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user