-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet restore returns invalid error code #4485
Comments
@MichaelSimons any chance you could take a look? |
@delanym - Can you share your repo steps? Is this utilizing a Dockerfile? @carlossanlop - this may be a better question for the NuGet folks. |
Before running dotnet restore, copy the attached csproj file: |
Any luck here? I can't create a reliable build system because dotnet restore pretends to succeed. |
Per @MichaelSimons suggestion, pinging @rrelyea from the nuget team to help. |
Perhaps related to: dotnet/msbuild#1603 If that doesn’t help, please engage with team in issues at nuget/home |
I will do that. However, lets not confuse the issue here. This dotnet application returns 0 even though packages failed to download. If it was getting packages from nuget directly, or a faulty mirror, or some custom proxy, it shouldn't matter. This is a basic requirement and its not working! The option to --ignore-failed-sources is not actually an option, its the default behaviour. It should be changed to an option, please. |
bump |
I'm doing a container build with mcr.microsoft.com/dotnet/core/sdk:3.1.201 and package restore regularly times out.
dotnet restore should fail if any packages fail to download and exit with an error code so I know to stop trying to build. If --ignore-failed-sources is set only then exit with 0.
The text was updated successfully, but these errors were encountered: