Set-PSResourcerepository fails on new installation of PS-Core 7.6.7
还没有人认领这个 Issue。
评估
调研方向
The failure is in loading the repository store: the error reports 'Could not find a part of the path' for PSResourceRepository.xml under the user's application data folder on a fresh install. Start from where the store path is built and read, and check whether its parent directory is created before the file is accessed. Reproduce with a clean profile running Set-PSResourceRepository -PSGallery -trusted. Done when that command succeeds on a machine with no existing store, and the related issue #1965 is checked for overlap.
由索引模型根据 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
This is close to the issue #1965.
On a new install of pwsh on Windows and macOS this Command:
Set-PSResourceRepository -PSGallery -trusted
fails
Expected behavior
PS> Set-PSResourceRepository -PSGallery -trusted
Actual behavior
PS> Set-PSResourceRepository -PSGallery -trusted
`Set-PSResourceRepository: Cannot retrieve the dynamic parameters for the cmdlet. Loading repository store failed: Could not find a part of the path '/Users/username/Library/Application Support/PSResourceget/PSResourceRepository.xml'`
Error details
Environment data
PSVersion: 7.6.7
PSEdition: Core
GitCommitId: 767
OS: Microsoft Windows 10.0.26200
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#
- 星标
- 578
- 派生
- 114
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 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 ·
-
feature_request
难度 2/5 1-3 小时 新手友好度 68/100
PowerShell/PSResourceGet#2013 · 3 条评论 ·
-
feature_request Needs-Triage
难度 5/5 一周以上 新手友好度 35/100
PowerShell/PSResourceGet#2068 ·
-
难度 4/5 3-5 天 新手友好度 48/100
PowerShell/PSResourceGet#2063 · 5 条评论 ·
-
PSResourceGet 1.3.0-preview2 error when installing AZ Module可能已有人在做 @alerickson 于 6 天前认领。 未关闭Needs-Triage
难度 3/5 1-2 天 新手友好度 55/100
PowerShell/PSResourceGet#2061 · 1 条评论 · 已指派 1 人 ·
查看 PowerShell/PSResourceGet 的全部 Issue
相似的 Issue
-
[BUG]: Position intent set on a simple order is dropped when it becomes a bracket, OCO or OTO order可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
alpacahq/alpaca-trade-api-csharp#903 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
joinrpg/joinrpg-net#5752 ·
维护者通常 1 天内回复
-
bug ux
难度 2/5 1-3 小时 新手友好度 78/100
CodeForFire/lagebuch#714 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
dimitar-radenkov/Pointframe#294 ·
维护者通常 1 天内回复
-
kind/feature-request
难度 2/5 1-3 小时 新手友好度 68/100
Altinn/altinn-correspondence#2154 ·
维护者通常 1 天内回复