PowerShell / PowerShell/PSResourceGet

Uninstall-PSResource: • Uninstall is not checking for dependencies (for Az modules)

オープン
#760 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Area-Docs Area-Uninstall Issue-Bug
主要言語
C#
スター
576
フォーク
114
平均マージ
1日 2時間
マージ済み PR(30日)
7

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供されている Install-PSResource Az.Billing と Uninstall-PSResource Az.Accounts のシーケンスを再現し、次に Az モジュールに対する Uninstall-PSResource の依存関係処理を追跡します。別のインストール済みモジュールから必要とされているモジュールをアンインストールすると、その削除を拒否して依存関係を報告し、この再現ケースに対するリグレッションカバレッジがある状態になったら、変更は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, powershell
領域
cli, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。