PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
485 stars 92 forks source link

We should introduce a -APIVersion parameter for Set-PSResourceRepository #1160

Closed SydneyhSmith closed 1 year ago

SydneyhSmith commented 1 year ago

Summary of the new feature / enhancement

When a PSResourceRepository is registered, it is assigned an API version (currently v2 or v3) there may be reasons a user wants to change or correct this version and users should not edit the Repository.xml file so we should introduce a way to update this field

Proposed technical implementation details (optional)

No response

ThomasNieto commented 1 year ago

Is the API version for NuGet or PowerShellGet?

SydneyhSmith commented 1 year ago

NuGet

ThomasNieto commented 1 year ago

I don't know much about nuget but doesn't the url determine the API version?

SydneyhSmith commented 1 year ago

Typically the url does determine the API version, but there are edge cases where we would not know... for example on prem ADO feed would look like local file share to us but would actually be a v3 feed