Skip to content

Commit

Permalink
lib/modules: keep mkDefault as an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu committed Nov 4, 2024
1 parent 04f60e7 commit d5d0fbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1059,15 +1059,15 @@ let
mkVMOverride = mkOverride priorities.vmOverride;

# Legacy aliases
mkDefault =
warnIf (oldestSupportedReleaseIsAtLeast 2505)
"`lib.modules.mkDefault` is deprecated, please use `lib.modules.mkConfigDefault` instead."
mkConfigDefault;
defaultOverridePriority =
warnIf (oldestSupportedReleaseIsAtLeast 2505)
"`lib.modules.defaultOverridePriority` is deprecated, please use `lib.modules.priorities.baseline` instead."
priorities.baseline;
defaultPriority = warnIf (oldestSupportedReleaseIsAtLeast 2305) "lib.modules.defaultPriority is deprecated, please use lib.modules.priorities.baseline instead." lib.modules.priorities.baseline;
# Usage of this function is extremely wide-spread. While the new name is
# clearer and should be preferred, there isn't any great need to force people
# who are used to the old name to change either.
mkDefault = mkConfigDefault;

mkFixStrictness = warn "lib.mkFixStrictness has no effect and will be removed. It returns its argument unmodified, so you can just remove any calls." id;

Expand Down

0 comments on commit d5d0fbd

Please sign in to comment.