paket restore - file creation issues
See original GitHub issueDescription
A paket restore
cannot extract / copy certain files to the packages folder
Repro steps
Please provide the steps required to reproduce the problem
-
Have paket.dependencies file from here:
git@github.com:Flohack74/paket-issuetracking.git
-
Do a paket restore with latest version 5.239, or one version below 5.238.2
Expected behavior
All packages are downloaded and installed
Actual behavior
paket restore
breaks with
==> Last trial
Downloading Microsoft.Extensions.DependencyInjection 3.1
Not moving as 'C:\Users\flole\.nuget\packages\microsoft.extensions.dependencyinjection\3.1.0\microsoft.extensions.dependencyinjection.3.1.0.nupkg' already exists (maybe some other instance downloaded it as well)
Download of Microsoft.Extensions.DependencyInjection 3.1 done in 28 milliseconds. (50758 kbit/s, 0 MB)
Performance:
- Disk IO: 23 seconds
- Average Download Time: 180 milliseconds
- Number of downloads: 216
- Average Request Time: 177 milliseconds
- Number of Requests: 234
- Runtime: 56 seconds
Paket omitted 4 warnings similar to the ones above. You can see them in verbose mode.
Paket failed with
-> Error during extraction of C:\USERDATA\DEVEL\packages\Microsoft.Extensions.DependencyInjection\microsoft.extensions.dependencyinjection.3.1.0.nupkg.
In rare cases a firewall might have blocked the download. Please look into the file and see if it contains text with further information.
-> IOException: The file 'C:\USERDATA\DEVEL\packages\Microsoft.Extensions.DependencyInjection\packageIcon.png' already exists.
It breaks on either Microsoft.Extensions.DependencyInjection or Microsoft.Extensions.DependencyInjection.Abstractions…
Also, paket restore --force
breaks on various packages with
Paket failed with
-> Error during cleaning of C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client
- Access to the path 'C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client\lib\net45' is denied.
-> UnauthorizedAccessException: Access to the path 'C:\USERDATA\DEVEL\packages\Microsoft.AspNet.WebApi.Client\lib\net45' is denied.
But this is a random race condition. Every time this appears its a different package.
Known workarounds
None
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:27 (16 by maintainers)
Top Results From Across the Web
paket restore
paket restore fails with an error if the paket.lock file does not exist. No packages are downloaded in that case. Please see paket...
Read more >NuGet Package Restore
NuGet Package Restore restores all of a project's dependencies that are listed in either a project file or a packages.config file.
Read more >Paket Issues - Steve Ellwood - Medium
I'm using Paket in my C# libraries and applications. I like the format and find it much simpler than some alternatives.
Read more >Can't get paket to work for the simplest case : r/fsharp
I think you need to run `dotnet paket restore`; this will ensure that the package is actually restored and available to your app....
Read more >Paket error: "Package was referenced, but it was not found ...
Option 1. The easiest way to fix this error is to delete the file paket.lock , and force Paket to regenerate this file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok please test 5.240.0. thanks
@dracan please retry with latest Paket