-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(psmodules): Remove folder recursively when unlinking previous module path #5127
fix(psmodules): Remove folder recursively when unlinking previous module path #5127
Conversation
Could this also solve #4844? |
Nope I guess, his issue happens in uninstallation process, while mine happens in installation process. |
Which PS module do you face this error in? Does it happen in any/all PS modules? |
Yes, it happens in all modules. |
There is another solution that we run |
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.
Right, the prompt appears in PS 5.1
This should fix it.
Description
Add a
-Recurse
parameter toRemove-Item
cmdlet when unlinking psmodule path.Motivation and Context
How Has This Been Tested?
I've tested my codes by performing update for the same app, everything seems ok
Changes may effect:
Scoop/libexec/scoop-uninstall.ps1
Line 85 in d63b7d6
Scoop/lib/install.ps1
Line 60 in 4a31bd3
Checklist:
develop
branch.