fix(psmodules): Remove folder recursively when unlinking previous module path#5127
Merged
rashil2000 merged 3 commits intoScoopInstaller:developfrom Aug 29, 2022
Merged
Conversation
Member
|
Could this also solve #4844? |
Contributor
Author
Nope I guess, his issue happens in uninstallation process, while mine happens in installation process. |
Member
|
Which PS module do you face this error in? Does it happen in any/all PS modules? |
Contributor
Author
Yes, it happens in all modules. |
Member
Contributor
Author
Contributor
Author
|
There is another solution that we run |
rashil2000
previously approved these changes
Aug 28, 2022
Member
rashil2000
left a comment
There was a problem hiding this comment.
Right, the prompt appears in PS 5.1
This should fix it.
niheaven
previously approved these changes
Aug 29, 2022
niheaven
approved these changes
Aug 29, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
Add a
-Recurseparameter toRemove-Itemcmdlet 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:
developbranch.