-
Notifications
You must be signed in to change notification settings - Fork 250
Revert CFS feed for PSResources #2277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,9 @@ param( | |
| [string]$PSRepository = "PSGallery" | ||
| ) | ||
|
|
||
| # Install-PSResource can't use the project-scoped feed because OneBranch doesn't auth it | ||
| if ($PSRepository -eq "CFS" -and -not (Get-PSResourceRepository -Name CFS -ErrorAction SilentlyContinue)) { | ||
| Register-PSResourceRepository -Name CFS -Uri "https://pkgs.dev.azure.com/msazure/One/_packaging/PowerShellGalleryMirror/nuget/v3/index.json" | ||
| Register-PSResourceRepository -Name CFS -Uri "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v3/index.json" | ||
|
||
| } | ||
|
|
||
| # NOTE: Due to a bug in Install-PSResource with upstream feeds, we have to | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new URI still appears to be a project-scoped Azure DevOps feed (just in a different org/project). The comment as written reads like a blanket limitation on project-scoped feeds, which could mislead future maintainers. Recommend updating the comment to describe the specific limitation (e.g., OneBranch doesn’t authenticate the msazure/One feed or a particular feed scope) and why this new feed is expected to work.