API

AddLatest.GitRegistryType

A registry that is cloned using Git.

Examples

julia> registries = [GitRegistry("https://github.com/JuliaRegistries/General.git")]

julia> Pkg.add(latest("Example"; registries = registries))
source
AddLatest.LocalFolderRegistryType

A registry that already exists in a folder on the filesystem.

Examples

julia> registries = [LocalFolderRegistry("/path/to/my/registry/")]

julia> Pkg.add(latest("Example"; registries = registries))
source
AddLatest.RegistryParsingCacheType

A cache for holding the results of parsed registries.

Examples

julia> cache = RegistryParsingCache()

julia> Pkg.add(latest("PkgA", cache))

julia> Pkg.add(latest("PkgB", cache))

julia> Pkg.add(latest("PkgC", cache))
source
AddLatest.latestMethod
latest(name::AbstractString,
       uuid::UUID;
       cache = RegistryParsingCache(),
       registries = [],
       include_default_registries::Bool = true)

Get the latest registered version of a package, given the name and UUID of the package.

Examples

julia> Pkg.add(latest("Example", UUID("7876af07-990d-54b4-ab0e-23690620f79a")))
source
AddLatest.latestMethod
latest(name::AbstractString;
       cache = RegistryParsingCache(),
       registries = [],
       include_default_registries::Bool = true)

Get the latest registered version of a package, given the name of the package.

Examples

julia> Pkg.add(latest("Example"))
source
AddLatest.parse_registryMethod
parse_registry(registry::GitRegistry)

Clone a registry via Git and parse it.

Example usage:

julia> registry = GitRegistry("https://github.com/JuliaRegistries/General.git")

julia> parseresult = parse_registry(registry)
source
AddLatest.parse_registryMethod
parse_registry(registry::LocalFolderRegistry)

Parse a registry located at the filesystem path path_to_registry.

Example usage:

julia> registry = LocalFolderRegistry("/path/to/my/registry/")
julia> parseresult = parse_registry(registry)
source