dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.06k stars 4.04k forks source link

curl error: Roslyn fails to build on OSX #38215

Open CoffeeFlux opened 5 years ago

CoffeeFlux commented 5 years ago

Version Used:

master

Steps to Reproduce:

  1. Run restore.sh

Expected Behavior:

Successful build

Actual Behavior:

ryan@kenshin:~/git/roslyn$ ./restore.sh 
Downloading 'https://dot.net/v1/dotnet-install.sh'
curl: (23) Failed writing body (0 != 3405)

Seems this can be caused by a variety of things, but I've tried to check for ones that would be an issue on my end. The homebrew curl is keg-only, so this should be using the OS-provided one. I have ample disk space available, and the path to roslyn is short and doesn't contain any strange characters.

.NET Core versions installed:

ryan@kenshin:~/git/roslyn$ dotnet --list-sdks
2.1.505 [/usr/local/share/dotnet/sdk]
2.1.700 [/usr/local/share/dotnet/sdk]
2.2.401 [/usr/local/share/dotnet/sdk]
3.0.100-preview6-012264 [/usr/local/share/dotnet/sdk]
3.0.100-preview8-013656 [/usr/local/share/dotnet/sdk]
ryan@kenshin:~/git/roslyn$ dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0-preview6.19307.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0-preview8.19405.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0-preview6-27804-01 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0-preview8-28405-07 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
CoffeeFlux commented 5 years ago

Issue seems to be related to having the system .NET on my path. It tries to download into /usr/local/share/and fails as a result, and removing that allows the build to run.