Open LukasAltinell opened 2 years ago
Thanks @LukasAltinell, we recently fixed the wildcard support for Find-PSResource
and will be included in the next prerelease.
In regards to the ADOFeed scenario, this current feature is not supported currently with ADOFeed because their server APIs do not allow us to pull all the modules.
@StevenBucher98 great, looking forward to trying it out! :)
That's to bad about the list all... but I understand your hands are tied!
Looking into this in testing the differences between Find-PSResource
and PowerShellGet\Find-Module
the current implementation doesn't match general user expectation for lazily effective use of cmdlets.
PowerShellGet\Find-Module
allowed for no Name parameter to be provided, (lazy via parameter binding but intentionally so) which by default will return all modules in all of the registered repositories.
This is ideally how Find-PSResource should function going forward but should also allow for in the middle wildcards just like how Find-Module or Get-Module
So as as lazily efficient and error prone to speeling mistaks user, it would be great to see the functionality be the same as how Find-Module works going forward
Prerequisites
Steps to reproduce
I'm trying to list available modules in a Azure Artifacts repository (connected trough v2) but the Find-PSResource requires the name parameter (and wildcard is not supported in ADOFeed).
Could this possibly be related to the #352, which seams to have been resolved in 3.0.11-beta?
Also guessing that this issue #302 should be taken in to consideration.
Register repository
Try to list available modules in the repository
Find-PSResource: Name parameter must be provided.
*Find-PSResource: -Name '' is not supported for Find-PSResource so all Name entries will be discarded.**
Find-PSResource: Searching through ADOFeed with wildcard in Name is not supported, so PSStenaNew repository will be skipped.
Expected behavior
Actual behavior
*Find-PSResource: -Name '' is not supported for Find-PSResource so all Name entries will be discarded.**
Find-PSResource: Searching through ADOFeed with wildcard in Name is not supported, so PSStenaNew repository will be skipped.
Environment data
Visuals
No response