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
-
The test-platform skill doesn't say what three of its failures look like可能已有人在做 @yasmoradi 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
bitfoundation/bitplatform#14022 ·
維護者通常 1 天內回覆
-
area-TableView bug needs-triage team-Controls
難度 2/5 1-3 小時 新手友好度 66/100
microsoft/microsoft-ui-xaml#12351 · 1 則留言 ·
維護者通常 2 天內回覆
-
AudioClient and ImageClient file path overloads send the full local path as the multipart file name可能已有人在做 @sebxt 今天認領。 未關閉area: audio area: images feature-request
難度 2/5 1-3 小時 新手友好度 76/100
openai/openai-dotnet#1453 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
Runtime diagnostics settings report canManage=true for every caller可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉needs-triage
難度 2/5 1-3 小時 新手友好度 78/100
elsa-workflows/elsa-foundation#3130 ·
維護者通常 1 天內回覆