PowerShell / PowerShell/PSResourceGet
Uninstall-PSResource: • Uninstall is not checking for dependencies (for Az modules)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
Summary of the new feature / enhancement
• Uninstall is not checking for dependencies – Here is a repro. Note that Az.Accounts is removed instead of throwing an error.
PS> Install-PSResource Az.Billing -Repository PSGallery -Reinstall -PassThru
Name Version Prerelease Repository Description
Az.Billing 2.0.0.0 PSGallery Microsoft Azure PowerShell - Billing service cmdlets for Azure Resource Mana…
Az.Accounts 2.9.1.0 PSGallery Microsoft Azure PowerShell - Accounts credential management cmdlets for Azur…
PS> Uninstall-PSResource Az.Accounts
PS> gmo az.* -list
Directory: C:\Users\sewhee\Documents\PowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
Script 2.0.0 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPer…
Proposed technical implementation details (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Install-PSResource Az.Billing and Uninstall-PSResource Az.Accounts sequence, then trace the Uninstall-PSResource dependency handling for Az modules. The change is complete when uninstalling a module required by another installed module refuses to remove it and reports the dependency, with regression coverage for this repro.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100