Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

cdrnet
Copy link
Member

@cdrnet cdrnet commented Apr 22, 2022

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