Closed gone-for-coding closed 8 months ago
It says published 1900-01-01.
PSResourceGet filters unlisted packages by published year not present OR published year is less than or equal to 1900.
Thanks for the hint @o-l-a-v ! That sounds like a workaround but will help until there is a boolean property like IsUnlisted
, which should be added IMO.
If that's how PSResourceGet does it I don't think such a boolean will be added in the API any time soon.
I guess you are right. I'll close this one, as I have a solution now and an additional field will most likely not be added.
Prerequisites
Steps to reproduce
Currently the
FindPackagesById()
API endpoint does not seem to contain information about whether a package is unlisted or not. This means, tools like renovate will suggest to update to unlisted package versions if the version number is higher (See here: https://github.com/renovatebot/renovate/discussions/25513).The
IsLatestVersion
property does not solve this issue as you may want to find the newest version of an older major release which might as well be unlisted.Example: https://www.powershellgallery.com/packages/VMware.PowerCLI/13.2.0.22651439 is an unlisted version. There is no higher version number available currently.
The API here https://www.powershellgallery.com/api/v2/FindPackagesById()?id=%27VMware.PowerCLI%27 does not contain any information that this package version is unlisted.
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
7.3.6
Visuals
No response