lib.mkRenamedOptionModuleWith: Remove warnWhenRead

Let's keep things simple and not poke holes in the
improved migration process.
This commit is contained in:
Robert Hensing 2022-03-21 14:39:19 +01:00
parent ca8fa3bb6e
commit 1eb627c4cf

View File

@ -916,19 +916,11 @@ rec {
*/
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 {
inherit from to;
visible = false;
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}'.";
};