Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NuGetV2-OData: retrieve versions in descending order for artifactory #2073
This change adds an alternative variant of tryGetAllVersions to fetch the versions in descending order (by publish date) instead of modifying the original one.
GetVersions chooses to use the alternative variant in case the source URI contains the string "artifactory". This is a very unreliable way of discovering a server to be an artifactory one, but is in line with the existing rules and should prevent affecting non-artifactory servers.
Ideally the decision should be more controllable than URI matching, e.g. by introducing the concept of source options (explicitly in the dependencies and lock files).