Skip to content

Commit e98d150

Browse files
top-level/aliases: abort evaluation on check error
The `aliases.nix` file is full of "expected errors", which the CI check for "does nixpkgs with aliases eval?" *must* ignore. However, this also hides an unexpected error, the check which prevents shadowing of existing attributes in all-packages.nix. By elevating this check to use `abort`, this will break the CI check for sure.
1 parent b4f0916 commit e98d150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ let
208208
# Make sure that we are not shadowing something from all-packages.nix.
209209
checkInPkgs =
210210
n: alias:
211-
if builtins.hasAttr n super then throw "Alias ${n} is still in all-packages.nix" else alias;
211+
if builtins.hasAttr n super then abort "Alias ${n} is still in all-packages.nix" else alias;
212212

213213
mapAliases =
214214
aliases: lib.mapAttrs (n: alias: removeRecurseForDerivations (checkInPkgs n alias)) aliases;

0 commit comments

Comments
 (0)