PowerShell / PowerShell/PSResourceGet
`Install-PSResource -WhatIf` with >= 1 `-Name` exits after one resource
Aperta
Nessuno ha ancora preso questa issue.
Area-Install
Issue-Bug
- Lingua principale
- C#
- Stelle
- 576
- Fork
- 114
- Merge medio
- 1g 2h
- PR unite (30g)
- 7
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Nel report non sono indicati file sorgente né test. Riproduci il comando PowerShell con più valori di -Name e -WhatIf, quindi segui l’entry point Install-PSResource per individuare dove si interrompe l’elaborazione; il lavoro è completato quando sia Az.Accounts sia Az.KeyVault producono un output WhatIf.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100