Multiple users are not able to build CoreCLR on the same Linux machine.
If we have two users (A and B) on the same Linux machine and A built CoreCLR first, user B is not able to build it too because build system creates /tmp/NuGet directory which is owned by A and inaccessible for B.
init-tools.log is like this
Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools.coreclr/index.json'.
Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
Permission denied
Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/index.json'.
Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
Permission denied
Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools.coreclr/index.json'.
Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
Permission denied
Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/index.json'.
Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
Permission denied
@ericstj is this nuget doing this? presumably if it maintains a global cache it needs some kind of locking system.
Yeah, that's NuGet. We used to hit this sort of thing all the time when running multiple instances of nuget on machine at once even from a parallel build, which is why we try to call nuget once up-front. NuGet worked at fixing those issues but they likely still have lingering problems. Please file an issue on https://github.com/nuget/home