package opam-state

  1. Overview
  2. Docs

Specific query and handling of pinned packages

Returns the version the package is pinned to.

  • raises Not_found

    when appropriate

Returns the package with the pinned-to version from a pinned package name.

  • raises Not_found

    when appropriate

Returns the package with the pinned-to version from a package name, if pinned

The set of all pinned packages with their pinning versions

val find_opam_file_in_source : OpamTypes.name -> OpamTypes.dirname -> OpamFile.OPAM.t OpamFile.t option

Looks up an 'opam' file for the given named package in a source directory

val files_in_source : OpamTypes.dirname -> (OpamTypes.name option * OpamFile.OPAM.t OpamFile.t) list

Finds all package definition files in a given source dir opam, pkgname.opam/opam, etc.

val orig_opam_file : OpamFile.OPAM.t -> OpamFile.OPAM.t OpamFile.t option

Finds back the location of the opam file this package definition was loaded from

OCaml

Innovation. Community. Security.