Documentation
¶
Overview ¶
Package latest resolves "the latest version" of a package straight from its registry, for `lockvet pkg <ecosystem>:<name>` when no version is given. Each lookup asks the same registry the corresponding metadata layer already talks to (same base-URL variables, so tests fake one place), prefers the registry's own notion of "latest stable" where the API offers one, and otherwise picks the highest non-prerelease version lockvet's comparator can order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PyPIURL serves /pypi/{name}/json (info.version = latest stable). PyPIURL = "https://pypi.org" // NuGetFlatURL is the v3 flat container: /{id}/index.json lists all // versions ascending (the endpoint `dotnet add package` resolves from). NuGetFlatURL = "https://api.nuget.org/v3-flatcontainer" )
Extra base URLs for registries whose metadata layer reads a different endpoint than the latest-version lookup wants; vars so tests can fake.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.