Skip to content

Commit

Permalink
lib/types: Set deprecationMessage for types.optionSet
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Sep 7, 2020
1 parent 3b7aca4 commit a582f6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,9 @@ rec {
# declarations from the ‘options’ attribute of containing option
# declaration.
optionSet = mkOptionType {
name = builtins.trace "types.optionSet is deprecated; use types.submodule instead" "optionSet";
name = "optionSet";
description = "option set";
deprecationMessage = "Use `types.submodule' instead";
};
# Augment the given type with an additional type check function.
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };
Expand Down

0 comments on commit a582f6a

Please sign in to comment.