Closed jdhitsolutions closed 9 months ago
Indeed, it looks like Find-Module
's OR logic with respect to multiple tags mistakenly became AND logic in Find-PSResource
.
@jdhitsolutions thanks for creating this issue! We intentionally changed our -Tag
logic to reflect AND
logic with Find-PSResource instead of OR
, so that the search is less computationally expensive and the search result is narrower. If a user wishes to see packages with tag1
OR tag2
they would need to provide 2 separate commands.
Good catch that the docs do not yet reflect this, we will update this on our end, thanks!
@jdhitsolutions in the docs for Find-PSResource
for the -Tag
parameter it states, "If multiple tags are specified, the cmdlet only returns resources that include all the tags provided." Just wanted to point to that, but please feel free to re-open if you feel we should add more clarity thanks :)
Prerequisites
Steps to reproduce
I can run these commands to search for resources by tag.
The -Tag parameter will accept an array, so it is reasonable to assume I can run:
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response