JustinGrote / JustinGrote/ModulePath
Get-ModulePath -AllUsers returns wrong folder path
- 主要言語
- PowerShell
- スター
- 25
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When running `Get-ModulePath` with _-AllUsers_ parameter, the returned folder refers to modules that are included with PowerShell, not AllUsers path.
The problem is in https://github.com/JustinGrote/ModulePath/blob/main/ModulePath.psm1#L103, where GetPSModulePath method uses wrong scope reference. The reference should be **Machine** instead of **BuiltIn**.
The problem only surfaces, when there is no custom path in .config.json file.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start at ModulePath.psm1 line 103 and inspect the GetPSModulePath scope reference. Reproduce the case with no custom path in .config.json by running Get-ModulePath -AllUsers; done means it returns the AllUsers module path rather than the PowerShell built-in modules path.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 50/100