Module OpamRepositoryPath

Defines the file hierarchy in repositories

module type PATH = sig ... end

Module type of internal representation of repositories. Use the functor Path.

module type PATH_REPR = sig ... end

Representation of pathnames for a specific repository root kind

module Make (I : PATH_REPR) : PATH with type repo_root = I.root and type repo_dirname = I.dir and type 'a typed_file = 'a I.typed_file

Instantiate repository paths by giving a filepath representation

val download_cache : OpamTypes.dirname -> OpamTypes.dirname

Prefix where to store the downloaded files cache: $opam/download-cache. Warning, this is relative to the opam root, not a repository root.

val pin_cache_dir : unit -> OpamTypes.dirname

Pin global cache, located in temporary directory, cleaned at end of process

val pin_cache : OpamUrl.t -> OpamTypes.dirname

Pin cache for a given download url.

module Remote : sig ... end

Url constructor for parts of remote repositories, when applicable (http and rsync). Function take the repo's root url.