`Install-PSResource -WhatIf` with >= 1 `-Name` exits after one resource

Aperta
#1,774 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
cli

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.

Descrizione

Area-Install Issue-Bug
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
image
Lingua principale
C#
Stelle
576
Fork
114
Merge medio
1g 2h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSResourceGet

Tutte le issue di PowerShell/PSResourceGet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.