MicrosoftDocs / PowerShell-Docs-PSGet

The official documentation for PowerShellGet and PowerShell Gallery
https://docs.microsoft.com/powershell/gallery/overview
Creative Commons Attribution 4.0 International
25 stars 27 forks source link

[Set-PSResourceRepository] Know precisely the behavior of the 'Priority' #47

Closed LaurentDardenne closed 1 year ago

LaurentDardenne commented 1 year ago

Prerequisites

PowerShell Version

5.1

Summary

As a user of PSResourceGet, I need to know precisely the behavior of the 'Priority' of the PSRepositories.

Details

Into this documentation,about Priority, it says "Repositories are searched in priority order (highest first)." but what about the case where two repositories have the same priority?

For this issue we do not know what behavior we will have in this case.

Is there a page detailing this notion of priority? For example it seems to impact several cmdlets of the microsoft.powershell.psresourceget module.

Proposed Content Type

Cmdlet Reference, About Topic, Concept

Proposed Title

No response

Related Articles

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.psresourceget/set-psresourcerepository?view=powershellget-3.x#-priority

sdwheeler commented 1 year ago

@LaurentDardenne This repository does not contain the documentation for PSResourceGet. I am moving this issue to the MicrosoftDocs/PowerShell-Docs-PSGet.

sdwheeler commented 1 year ago

Repositories are sorted by priority and then by name. https://github.com/PowerShell/PSResourceGet/blob/07c72682de19801dbb832902f26dc4af6c5e8bee/src/code/RepositorySettings.cs#L768

LaurentDardenne commented 1 year ago

Thank you for your reply.

This repository does not contain the documentation for PSResourceGet.

Sorry, I used the link given here image

sdwheeler commented 1 year ago

Sorry, I used the link given here

Oh, I will get that fixed.