[automated] Merge branch 'release/6.0.1xx' => 'main' (#12602)

* Set ulimit

* Run build under sudo so that we can set ulimit

* Update Versions.props

* Update GenerateBundledVersions.targets

* Set ulimit

* Run build under sudo so that we can set ulimit

* Add comments about sudo and ulimit

Co-authored-by: Daniel Plaisted <daplaist@microsoft.com>
Co-authored-by: Marc Paine <marcpop@microsoft.com>
Co-authored-by: Daniel Plaisted <dsplaisted@gmail.com>
Co-authored-by: Jason Zhai <v-wuzhai@microsoft.com>
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
This commit is contained in:
Matt Mitchell 2021-11-15 11:42:53 -08:00 committed by GitHub
commit ea215d5a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -53,5 +53,7 @@ dockerbuild()
if [ ! -z "$BUILD_IN_DOCKER" ]; then
dockerbuild $args
else
# Run under sudo so we can set ulimit
# See https://github.com/dotnet/core-eng/issues/14808
sudo $DIR/run-build.sh $args
fi

View file

@ -26,6 +26,7 @@ CUSTOM_BUILD_ARGS=
[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
# Set max number of files open, helps avoid errors during NuGet restore
# See https://github.com/dotnet/core-eng/issues/14808
ulimit -n 16384
args=( )