OneGet / oneget

PackageManagement (aka OneGet) is a package manager for Windows
MIT License
2.38k stars 189 forks source link

Install-Package failed because a temp file already exists #544

Open anonhostpi opened 5 months ago

anonhostpi commented 5 months ago

Installing Microsoft.Extensions.DependencyInjection.Abstractions from NuGet seems to self-extract the same file twice, causing errors

Environments:

To reproduce:

Install-Package `
  -Name "Microsoft.Extensions.DependencyInjection.Abstractions" `
  -RequiredVersion 3.1.0 `
  -Scope CurrentUser

Result:

Install-Package : Package 'Microsoft.Extensions.DependencyInjection.Abstractions' failed to be installed because: The file 'C:\Users\\AppData\Local\Temp\4114qgpj\packageIcon.png' already exists.

anonhostpi commented 5 months ago

Looks like the issue is caused when 2 entries in the source .nupkg file share the same path:

image