cake: NuGet hang due to bug in NuGet 4.6.0

Cake hangs when restoring certain signed NuGet packages. The longest I waited before killing was between 5 and 10 minutes. A repro is a .cake script with #tool WiX.Toolset.UnofficialFork. The latest version of that package, 3.11.1, is the first signed version.

I verified that the bug is present in https://dist.nuget.org/win-x86-commandline/v4.6.0/nuget.exe but not in https://dist.nuget.org/win-x86-commandline/v4.6.1/nuget.exe, running nuget.exe verify -signatures wix.toolset.unofficialfork.3.11.1.nupkg against each.

Cake currently bundles NuGet 4.6.0 assemblies, so it seems that updating its NuGet dependencies to 4.6.2 might resolve this problem.

/cc @gep13

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (22 by maintainers)

Commits related to this issue

Most upvoted comments

Lol, three-way race condition 😆

@mholo65 I’ve added you as a collaborator on the repo and as an owner on NuGet, feel free to push any change 😃

@jnm2, np. I can take a look tonight!

Ok, perfect. Just wanted to check.