Skip to content

NuGet Cache: ensure for clitool nupkg is there even after skipped 2nd extraction - #4145

Merged
forki merged 1 commit into
fsprojects:masterfrom
cdrnet:fix-nuget-cache-nupkg-clitool
Apr 22, 2022
Merged

NuGet Cache: ensure for clitool nupkg is there even after skipped 2nd extraction#4145
forki merged 1 commit into
fsprojects:masterfrom
cdrnet:fix-nuget-cache-nupkg-clitool

Conversation

@cdrnet

@cdrnet cdrnet commented Apr 22, 2022

Copy link
Copy Markdown
Member

Fixes #4144

The problem is that we extract twice into the same place in case of clitool for some reason, but the second time NuGet seems to skip the extraction assuming it's already extracted - and hence not extracting the missing nupkg again. In this case we now move it back, instead of deleting it.

However, the clitool use case should be reviewed, the current implementation doesn't make much sense to me (it extracts twice into the same place; it prepares a different target folder, but this folder is not actually used for anything except logging). Also, is the .nuget/packages/.tools folder still the right place? Newer SDKs at least on Windows seem to put local tools just normally in the cache like any other package, and global tools instead into .dotnet/tools (but in a weird way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v7.1.2 and greater fail to install clitools

2 participants