From d6aafb3be95c156bfdb0992fae27bc3491a8b6e5 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 15 Aug 2021 17:52:55 +0200 Subject: [PATCH] nixpkgs-basic-release-checks: Check without aliases This allows the aliases file to produce deprecation warnings without triggering the check against warnings. This allows for a better user experience when deprecations occur. Moreover, Nixpkgs itself shouldn't rely on its backcompat aliases. --- pkgs/top-level/nixpkgs-basic-release-checks.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/nixpkgs-basic-release-checks.nix b/pkgs/top-level/nixpkgs-basic-release-checks.nix index ffd92d587ba1..777cce7e5e0c 100644 --- a/pkgs/top-level/nixpkgs-basic-release-checks.nix +++ b/pkgs/top-level/nixpkgs-basic-release-checks.nix @@ -34,6 +34,7 @@ pkgs.runCommand "nixpkgs-release-checks" { src = nixpkgs; buildInputs = [nix]; } nix-env -f $src \ --show-trace --argstr system "$platform" \ + --arg config '{ allowAliases = false; }' \ -qa --drv-path --system-filter \* --system \ "''${opts[@]}" 2>&1 >/dev/null | tee eval-warnings.log @@ -45,6 +46,7 @@ pkgs.runCommand "nixpkgs-release-checks" { src = nixpkgs; buildInputs = [nix]; } nix-env -f $src \ --show-trace --argstr system "$platform" \ + --arg config '{ allowAliases = false; }' \ -qa --drv-path --system-filter \* --system --meta --xml \ "''${opts[@]}" > /dev/null done