package opam-state
Install
dune-project
Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=abb7d7788f290d81d73b924b307b4bef
sha512=0d8ee19ac0f3df9de4fd9cfa8daab1f7228f090f5e2e7e26bedf24d8c2ab377aade95048f2d7cd9ee9dbbe738729e26dc99f41f730fa2252df74953362464a22
doc/opam-state/OpamPinned/index.html
Module OpamPinnedSource
Specific query and handling of pinned packages
Returns the version the package is pinned to.
Returns the package with the pinned-to version from a pinned package name.
val package_opt :
'a OpamStateTypes.switch_state ->
OpamTypes.name ->
OpamTypes.package optionReturns 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 optionLooks up an 'opam' file for the given named package in a source directory. This is affected by OpamStateConfig.(!r.locked).
val files_in_source :
OpamTypes.dirname ->
(OpamTypes.name option * OpamFile.OPAM.t OpamFile.t) listFinds all package definition files in a given source dir opam, pkgname.opam/opam, etc. This is affected by OpamStateConfig.(!r.locked)
From an opam file location, sitting below the given project directory, find the corresponding package name if specified (<name>.opam or <name>.opam/opam). This function doesn't check the project directory name itself, or the package name that might be specified within the file.
val orig_opam_file :
OpamPackage.Name.t ->
OpamFile.OPAM.t ->
OpamFile.OPAM.t OpamFile.t optionFinds back the location of the opam file this package definition was loaded from