Merge pull request #331212 from K900/release-checks-fix

nixpkgs/release-checks: fix build, clean up a bit
This commit is contained in:
K900 2024-07-31 10:16:48 +03:00 committed by GitHub
commit 2c9d709871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,9 @@ pkgs.runCommand "nixpkgs-release-checks"
# Relies on impure eval
export NIX_ABORT_ON_WARN=true
# Suppress GC warnings
export GC_LARGE_ALLOC_WARN_INTERVAL=100000
set +e
(
set -x
@ -62,7 +65,6 @@ pkgs.runCommand "nixpkgs-release-checks"
fi
s1=$(sha1sum packages1 | cut -c1-40)
echo $s1
nix-env -f $src2 \
--show-trace --argstr system "$platform" \
@ -82,9 +84,10 @@ pkgs.runCommand "nixpkgs-release-checks"
# Catch any trace calls not caught by NIX_ABORT_ON_WARN (lib.warn)
if [ -s eval-warnings.log ]; then
echo "Nixpkgs on $platform evaluated with warnings, aborting"
echo "Warnings logged:"
cat eval-warnings.log
exit 1
fi
rm eval-warnings.log
nix-env -f $src \
--show-trace --argstr system "$platform" \