Register-PSRepository -Default failed inside the legacy nuget.exe provider with "Missing option value for: '-source'" on the hosted windows-2022 image, leaving PSGallery unregistered so the subsequent Set-PSRepository threw "No repository with the name 'PSGallery'". Prefer Microsoft.PowerShell.PSResourceGet (bundled with PowerShell 7.4+), which has PSGallery registered by default and avoids that code path; fall back to PowerShellGet with an explicit NuGet-provider bootstrap only when PSResourceGet is unavailable. Co-authored-by: Orca <help@stably.ai> |
||
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE | ||
| scripts | ||
| workflows | ||
| CONTRIBUTING.md | ||
| pull_request_template.md | ||