Give actual reason why module of specified version could not be installed when it was not found
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先,使用一个不存在的软件包版本重现 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 天内回复