git: fix checks by limiting build cores (#403237)

authored by Jörg Thalheim and committed by GitHub b0f24a48 c283e7a6

+6
+6
pkgs/applications/version-management/git/default.nix
··· 456 457 preInstallCheck = 458 '' 459 installCheckFlagsArray+=( 460 GIT_PROVE_OPTS="--jobs $NIX_BUILD_CORES --failures --state=failed,save" 461 GIT_TEST_INSTALLED=$out/bin
··· 456 457 preInstallCheck = 458 '' 459 + # Some tests break with high concurrency 460 + # https://github.com/NixOS/nixpkgs/pull/403237 461 + if ((NIX_BUILD_CORES > 32)); then 462 + NIX_BUILD_CORES=32 463 + fi 464 + 465 installCheckFlagsArray+=( 466 GIT_PROVE_OPTS="--jobs $NIX_BUILD_CORES --failures --state=failed,save" 467 GIT_TEST_INSTALLED=$out/bin