Dotnet tool restore fails randomly #27161
-
Recently I’ve started seeing in several workflows, for no apparent reason, no recognizable pattern, to see this error, when running a simple “dotnet tool restore”:
No matter what the content of the workflow, no matter the place the action is in the flow, one time it would fail, another time it would succeed, seemingly completely randomly. Any ideas why ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out this is not an isolated problem and many people have experienced it. If you are one of us, I found a solution mentioned in this thread - actions/setup-dotnet#155 The solution is this step:
If you are using Powershell explicitly, use this instead:
There seems to be a problem (unknown as of the writing of this comment) that is fixed by this deep cleaning and only then restoring .NET tools. |
Beta Was this translation helpful? Give feedback.
Turns out this is not an isolated problem and many people have experienced it.
If you are one of us, I found a solution mentioned in this thread - actions/setup-dotnet#155
The solution is this step:
If you are using Powershell explicitly, use this instead:
There seems to be a problem (unknown as of the writing of this comment) that is fixed by this deep cleaning and only then restoring .NET tools.