PowerShell / PowerShell/PSResourceGet
`Install-PSResource -WhatIf` with >= 1 `-Name` exits after one resource
Open
Nobody has claimed this yet.
Area-Install
Issue-Bug
- Dominant language
- C#
- Stars
- 576
- Forks
- 114
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 7
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
If doing Install-PSResource -WhatIf with multiple -Name the output stops after it's finished with just the 1st specified resource.
Expected behavior
PS > Install-PSResource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' `
-Name 'Az.Accounts', 'Az.KeyVault' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.Accounts', version: '4.0.0'".
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.KeyVault', version: '6.3.0'".
PS >
Actual behavior
PS > Install-PSResource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' `
-Name 'Az.Accounts', 'Az.KeyVault' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Install-PSResource" on target "Package to install: 'Az.Accounts', version: '4.0.0'".
PS >
Error details
No errors.
Environment data
- Microsoft.PowerShell.PSResourceGet v1.1.0
- PowerShell v7.5.6 x64 Windows
Visuals
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
No source files or tests are named in the report. Reproduce the PowerShell command with multiple -Name values and -WhatIf, then trace the Install-PSResource entry point to find where processing stops; done means both Az.Accounts and Az.KeyVault produce WhatIf output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100