未验证 提交 f633aadc 编写于 作者: J Joey Robichaud 提交者: GitHub

Disable parallel nuget restore on linux and mac (#33109)

上级 beeed1f3
...@@ -64,6 +64,7 @@ skip_analyzers=false ...@@ -64,6 +64,7 @@ skip_analyzers=false
prepare_machine=false prepare_machine=false
warn_as_error=false warn_as_error=false
properties="" properties=""
disable_parallel_restore=false
docker=false docker=false
args="" args=""
...@@ -222,7 +223,7 @@ function BuildSolution { ...@@ -222,7 +223,7 @@ function BuildSolution {
# NuGet often exceeds the limit of open files on Mac and Linux # NuGet often exceeds the limit of open files on Mac and Linux
# https://github.com/NuGet/Home/issues/2163 # https://github.com/NuGet/Home/issues/2163
if [[ "$UNAME" == "Darwin" || "$UNAME" == "Linux" ]]; then if [[ "$UNAME" == "Darwin" || "$UNAME" == "Linux" ]]; then
ulimit -n 6500 disable_parallel_restore=true
fi fi
local quiet_restore="" local quiet_restore=""
...@@ -273,6 +274,7 @@ function BuildSolution { ...@@ -273,6 +274,7 @@ function BuildSolution {
/p:QuietRestore=$quiet_restore \ /p:QuietRestore=$quiet_restore \
/p:QuietRestoreBinaryLog="$binary_log" \ /p:QuietRestoreBinaryLog="$binary_log" \
/p:TreatWarningsAsErrors=true \ /p:TreatWarningsAsErrors=true \
/p:RestoreDisableParallel=$disable_parallel_restore \
$test_runtime \ $test_runtime \
$mono_tool \ $mono_tool \
$properties $properties
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册