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
Functionality:LocalsPriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:DCRDesign Change Request
I don't know the underlying cause of the concurrency issue, but our tests in NuGet.Common.Tests will check it, if you comment out all usage of PerFileLock. For slightly more details, see NuGet/NuGet.Client#4123 (review)
Functionality:LocalsPriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:DCRDesign Change Request
Activity
heng-liu commentedon Mar 26, 2021
Hi, thanks for reporting this issue!
Sorry, looks like we dispose lock file in temp folder on Windows, but not Linux/Mac, due to some concurrency issues.
So you have to clean it up by running
dotnet nuget locals temp --clearcommand. (https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders#clearing-local-folders)tmds commentedon Mar 26, 2021
Can you give more info about these concurrency issues? Or point me to the code?
heng-liu commentedon Mar 26, 2021
Hi @tmds , I haven't looked into what are the exact issues, but people encountered the issues before so we use different FileOptions for Windows and other platforms at
https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Common/ConcurrencyUtilities.cs#L200-L212
tmds commentedon Mar 28, 2021
Looks like this was introduced in NuGet/NuGet.Client#431.
Let's see what happens if we use
DeleteOnCloseon Linux. Maybe .NET is handling this better than 5 years ago.zivkan commentedon Jun 23, 2021
I don't know the underlying cause of the concurrency issue, but our tests in
NuGet.Common.Testswill check it, if you comment out all usage ofPerFileLock. For slightly more details, see NuGet/NuGet.Client#4123 (review)