PSResourceGet
PSResourceGet copied to clipboard
Find-PSResource with wildcards does not work with file system based repositories
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
Find-PSResource with wildcards does not work with file system based repositories.
mkdir c:\temp\repo
Register-PSResourceRepository -Name Test -Uri c:\temp\repo
Save-PSResource -Name snmp -Path c:\temp\repo -AsNupkg
Find-PSResource -Name * -Repository Test
Find-PSResource -Name s* -Repository Test
Expected behavior
C:\> Find-PSResource -Name * -Repository Test
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
SNMP 1.0.0.1 test Module to manage systems using SNMP.
C:\> Find-PSResource -Name s* -Repository Test
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
SNMP 1.0.0.1 test Module to manage systems using SNMP.
Actual behavior
C:\> Find-PSResource -Name * -Repository Test
C:\> Find-PSResource -Name s* -Repository Test
Error details
N/A
Environment data
Name Version
---- -------
PowerShellGet 3.0.14
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Thanks @ThomasNieto this is a known issue with the nuget APIs but we are exploring how we can work around this to pull all of the packages...in the meantime we should better document this limitation