From f633aadc4c27250d25ec09d96e5e3e8729cc5521 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Mon, 4 Feb 2019 15:46:58 -0800 Subject: [PATCH] Disable parallel nuget restore on linux and mac (#33109) --- eng/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/build.sh b/eng/build.sh index 246adaf18d5..abd2d937257 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -64,6 +64,7 @@ skip_analyzers=false prepare_machine=false warn_as_error=false properties="" +disable_parallel_restore=false docker=false args="" @@ -222,7 +223,7 @@ function BuildSolution { # NuGet often exceeds the limit of open files on Mac and Linux # https://github.com/NuGet/Home/issues/2163 if [[ "$UNAME" == "Darwin" || "$UNAME" == "Linux" ]]; then - ulimit -n 6500 + disable_parallel_restore=true fi local quiet_restore="" @@ -273,6 +274,7 @@ function BuildSolution { /p:QuietRestore=$quiet_restore \ /p:QuietRestoreBinaryLog="$binary_log" \ /p:TreatWarningsAsErrors=true \ + /p:RestoreDisableParallel=$disable_parallel_restore \ $test_runtime \ $mono_tool \ $properties -- GitLab