Find-PSResource -Repository 'PSGallery'
with NuGet version range returns no versions
#1630
Open
3 tasks done
Labels
Prerequisites
Steps to reproduce
Find-PSResource -Repository 'PSGallery' -Name 'Az' -Version '(9,10)'
returns nothing.If using
-Debug
we can se that the API request looks like below, which to me looks fine.https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$orderby=NormalizedVersion desc&$inlinecount=allpages&$skip=0&$filter=IsPrerelease eq false and Id eq 'Az' and NormalizedVersion gt '9.0.0' and NormalizedVersion lt '10.0.0'
I think this is a problem with the PowerShell Gallery API. It works with NuGet v3 API shim pwsh.gallery like so:
Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: