Give actual reason why module of specified version could not be installed when it was not found
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
研究方向
首先,使用不存在的套件版本重現 Install-PSResource 和 Save-PSResource 的案例,然後將它們的錯誤與 Find-PSResource 進行比較。追蹤這些進入點的命令實作與錯誤處理;完成的標準是兩個命令都回報在指定的儲存庫中找不到要求的套件版本。
由索引模型根據 Issue 內容生成。
描述
Summary of the new feature / enhancement
Windows 11 24H2
PowerShell x64 v7.4.6
Microsoft.PowerShell.PSResourceGet v1.0.6
PS > Install-PSresource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' -Name 'Az.Accounts' -Version '99.98.97'
Install-PSResource: Package(s) 'Az.Accounts' could not be installed from repository 'PSGallery'.
PS >
It'd be great is PSResourceGet to output the actual reason for why Az.Accounts v99.98.97 could not be installed: That this version was not found in the given repository.
Find-PSResource returns this information, Save-PSResource and Install-PSResource should too.
PS > Find-PSResource -Repository 'PSGallery' -Name 'Az.Accounts' -Version '99.98.97'
Find-PSResource: Package with name 'Az.Accounts', version '99.98.97' could not be found in repository 'PSGallery'.
PS >
Proposed technical implementation details (optional)
No response
- 主要語言
- C#
- 星號
- 581
- 分支
- 116
- 平均合併
- 1 天 21 小時
- 30 天內合併 PR
- 9
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/PSResourceGet 的其他 Issue
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory未關閉
難度 2/5 1-3 小時 新手友好度 78/100
PowerShell/PSResourceGet#2056 ·
維護者通常 1 天內回覆
-
feature_request
難度 2/5 1-3 小時 新手友好度 68/100
PowerShell/PSResourceGet#2013 · 3 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 半天 新手友好度 25/100
PowerShell/PSResourceGet#2078 ·
維護者通常 1 天內回覆
-
Area-Install feature_request
難度 5/5 一週以上 新手友好度 35/100
PowerShell/PSResourceGet#2068 · 1 個 reaction ·
維護者通常 1 天內回覆
-
System.Text.Json assembly conflict with Az.Accounts可能已有人在做 @alerickson 於 25 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
PowerShell/PSResourceGet#2063 · 5 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 PowerShell/PSResourceGet 的全部 Issue
相似的 Issue
-
area-templates triage:bot-seen triage:needs-human
難度 2/5 1-3 小時 新手友好度 75/100
microsoft/aspire#22356 · 1 則留言 ·
維護者通常 1 天內回覆
-
Needs-Triage
難度 2/5 1-3 小時 新手友好度 84/100
PowerShell/PowerShell#28432 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/aspire.dev#2184 ·
維護者通常 2 天內回覆
-
area-controls-refreshview platform/ios s/triaged
難度 2/5 1-3 小時 新手友好度 74/100
dotnet/maui#40314 · 1 個 reaction ·
維護者通常 1 天內回覆
-
Needs: Triage (Functions) v5 v5-preview5
難度 2/5 1-3 小時 新手友好度 70/100
Azure/azure-functions-core-tools#5918 ·
維護者通常 1 天內回覆