nixpkgs-basic-release-checks.nix: print errors
This commit is contained in:
parent
54158cc5fe
commit
3f323d74d6
1 changed files with 16 additions and 6 deletions
|
@ -30,12 +30,22 @@ pkgs.runCommand "nixpkgs-release-checks" { src = nixpkgs; buildInputs = [nix]; }
|
|||
# Relies on impure eval
|
||||
export NIX_ABORT_ON_WARN=true
|
||||
|
||||
nix-env -f $src \
|
||||
--show-trace --argstr system "$platform" \
|
||||
--arg config '{ allowAliases = false; }' \
|
||||
--option experimental-features 'no-url-literals' \
|
||||
-qa --drv-path --system-filter \* --system \
|
||||
"''${opts[@]}" 2> eval-warnings.log > packages1
|
||||
set +e
|
||||
(
|
||||
set -x
|
||||
nix-env -f $src \
|
||||
--show-trace --argstr system "$platform" \
|
||||
--arg config '{ allowAliases = false; }' \
|
||||
--option experimental-features 'no-url-literals' \
|
||||
-qa --drv-path --system-filter \* --system \
|
||||
"''${opts[@]}" 2> eval-warnings.log > packages1
|
||||
)
|
||||
rc=$?
|
||||
set -e
|
||||
if [ "$rc" != "0" ]; then
|
||||
cat eval-warnings.log
|
||||
exit $rc
|
||||
fi
|
||||
|
||||
s1=$(sha1sum packages1 | cut -c1-40)
|
||||
echo $s1
|
||||
|
|
Loading…
Reference in a new issue