You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to update packages when NuGet cache is empty #55
Our CI fails to update dependencies from time to time.
Seems like that 20 seconds timeout is not enough for a large project with empty NuGet cache.
Currently, I don't see any reason to run MSBuild with timeout. Any chance to remove it completely?
As a temporary workaround it is possible to run dotnet restore in advance.
Version used: 3.0.2
Steps to reproduce:
Clear NuGet cache dotnet nuget locals all --clear
Run the tool dotnet outdated
Expected behavior:
No errors.
Actual behavior: Are you sure this is a valid .NET Core or .NET Standard project type?
Reacted by Glor69, Denis Kuzmenko, I K and Graham Esau
Hi @shivinsky I've had this same problem with another tool I maintain. I don't want to remove the timeout completely. Some issues can cause it to hang indefinitely without it.
But 20 seconds is pretty low. I'll increase it and add a parameter that allows overriding the timeout value.
Reacted by Augusto Proiete, Denis Kuzmenko and Ari Kalish
I've opened #248 to make this configurable and increased the default to 30s.
In my case the cache wasn't empty, but the restore op takes a bit longer than 20s with some specific large solutions, but it fits both cases.
+1 to this - when our internal private NuGet feed is underload sometimes, it takes longer than 20 seconds to compute the dependency graph, causing dotnet outdated to just fail.
Activity
coderpatros commentedon Nov 19, 2020
Hi @shivinsky I've had this same problem with another tool I maintain. I don't want to remove the timeout completely. Some issues can cause it to hang indefinitely without it.
But 20 seconds is pretty low. I'll increase it and add a parameter that allows overriding the timeout value.
ransagy commentedon Feb 1, 2022
I've opened #248 to make this configurable and increased the default to 30s.
In my case the cache wasn't empty, but the restore op takes a bit longer than 20s with some specific large solutions, but it fits both cases.
martincostello commentedon Aug 21, 2023
+1 to this - when our internal private NuGet feed is underload sometimes, it takes longer than 20 seconds to compute the dependency graph, causing
dotnet outdatedto just fail.