package opam-repository

  1. Overview
  2. Docs

Defines the file hierarchy in repositories

Repository local path: $opam/repo/<name>

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.

Return the repo file

val packages_dir : OpamTypes.dirname -> OpamTypes.dirname

Packages folder: $repo/packages

val packages : OpamTypes.dirname -> string option -> OpamTypes.package -> OpamTypes.dirname

Package folder: $repo/packages/XXX/$NAME.$VERSION

Return the OPAM file for a given package: $repo/packages/XXX/$NAME.$VERSION/opam

Return the description file for a given package: $repo/packages/XXX/$NAME.VERSION/descr

urls $repo/package/XXX/$NAME.$VERSION/url

val files : OpamTypes.dirname -> string option -> OpamTypes.package -> OpamTypes.dirname

files $repo/packages/XXX/$NAME.$VERSION/files

module Remote : sig ... end

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

OCaml

Innovation. Community. Security.