PSResourceGet 1.3.0-preview2 error when installing AZ Module
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reproducing the reported failure with Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery on PSResourceGet 1.3.0-preview2, then compare with 1.2.0 as the issue reports. Trace the Install-PSResource failure path; the issue does not identify a source file or test. Done means the AZ module installs without error in the reported environments.
由索引模型根据 Issue 内容生成。
描述
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
When using the Microsoft.PowerShell.PSResourceGet 1.3.0-preview2 i've got an error when installing the AZ 16.4.0 PowerShell Module in PowerShell 5.1 and 7.6.6
Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
Works fine in Microsoft.PowerShell.PSResourceGet 1.2.0
Expected behavior
Install-PSResource without error
Actual behavior
`Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery` throws an error
Error details
get-error
Exception :
Type : Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException
Message : Package(s) 'AZ' could not be installed from repository 'PSGallery'.
HResult : -2146233088
TargetObject : Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
CategoryInfo : InvalidData: (Microsoft.PowerShel…s.InstallPSResource:InstallPSResource) [Install-PSResource],
ResourceNotFoundException
FullyQualifiedErrorId : InstallPackageFailure,Microsoft.PowerShell.PSResourceGet.Cmdlets.InstallPSResource
InvocationInfo :
MyCommand : Install-PSResource
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 3
Line : Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
Statement : Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
PositionMessage : At line:1 char:1
+ Install-PSResource -Name AZ -Scope CurrentUser -Repository PSGallery
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
InvocationName : Install-PSResource
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
0
1
Environment data
Get-InstalledPSResource -name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
Microsoft.PowerShell.PSResourceGet 1.3.0 preview2 PSGallery PowerShell module with commands for discovering, inst…
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 7.6.6
PSEdition Core
GitCommitId 7.6.6
OS Microsoft Windows 10.0.26300
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
- 主要语言
- C#
- 星标
- 577
- 派生
- 114
- 平均合并
- 14 小时 27 分钟
- 30 天内合并 PR
- 7
环境准备
- 没有 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 天内回复
-
Needs-Triage
难度 4/5 3-5 天 新手友好度 48/100
PowerShell/PSResourceGet#2063 ·
维护者通常 1 天内回复
-
Needs-Triage
难度 3/5 1-2 天 新手友好度 55/100
PowerShell/PSResourceGet#2060 ·
维护者通常 1 天内回复
-
Needs-Triage
难度 3/5 1-2 天 新手友好度 68/100
PowerShell/PSResourceGet#2059 ·
维护者通常 1 天内回复
查看 PowerShell/PSResourceGet 的全部 Issue
相似的 Issue
-
Bug pulumi/pulumi
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
activescott/lessmsi#306 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
HTML sitemap lists unpublished pages可能已有人在做 @KrzysztofPajak 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
grandnode/grandnode2#883 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复