-
Notifications
You must be signed in to change notification settings - Fork 84
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
Update cache
command to handle directories
#360
Conversation
bd0545f
to
acc3a76
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Ah I should have mentioned this before, you only need to edit the file |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Motivation
The implementation of zip installers meant that winget-create now extracts the zip archives to
%LOCALAPPDATA%\Temp\wingetcreate
. The extracted directories are not shown inwingetcreate cache --list
and not removed bywingetcreate cache --clean
. This PR aims to fix the behavior by listing and removing the extracted folders in the respectivewingetcreate cache
commands.Description
DirectoriesFound_Message
to show in cache --list/
or\
(depending on the OS)When deleting the directories, I used the same message for deleting installers i.e.,Renamed the existing resource string fromDeletingInstaller_Message
as I didn't feel the need to create a new string for it.DeletingInstaller_Message
->DeletingItem_Message
to be more generic to cater for deletion of directories as wellMicrosoft Reviewers: Open in CodeFlow