Skip to content

Unable to update packages when NuGet cache is empty #55

Closed

Description

@shivinsky

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:

  1. Clear NuGet cache dotnet nuget locals all --clear
  2. 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?

Activity

  1. coderpatros commented on Nov 19, 2020

    @coderpatros
    Member

    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.

  2. added
    enhancement
    good first issue
    on Nov 19, 2020
  3. ransagy commented on Feb 1, 2022

    @ransagy

    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.

  4. martincostello commented on Aug 21, 2023

    @martincostello
    Contributor

    +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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions