package opam-state
Install
dune-project
Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.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=a5ac5882814d72ec3f8ed512ca9a1fe6
sha512=7c3a23798cad6a940f12154904144bdebf622a55c2a56e813a6bf3b180f5e5843971b21902c46547716836fd7e04c239256f8238db1b6ba049b878438fdad38f
doc/opam-state/OpamPinned/index.html
Module OpamPinnedSource
Specific query and handling of pinned packages
Returns the version the package is pinned to.
val version_opt :
'a OpamStateTypes.switch_state ->
OpamTypes.name ->
OpamTypes.version optionIf the package is pinned, returns its version. Otherwise returns None.
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 :
?locked:string ->
OpamTypes.name ->
OpamTypes.dirname ->
(OpamFile.OPAM.t OpamFile.t * string option) optionLooks up an 'opam' file for the given named package in a source directory.
val files_in_source :
?locked:string ->
?recurse:bool ->
?subpath:OpamTypes.subpath ->
OpamTypes.dirname ->
OpamStateTypes.nameopt_and_file listFinds all package definition files in a given source dir opam, pkgname.opam/opam, etc. This is affected by OpamStateConfig.(!r.locked)
val files_in_source_w_target :
?locked:string ->
?recurse:bool ->
?subpath:OpamTypes.subpath ->
?same_kind:(OpamTypes.url -> bool) ->
OpamTypes.url ->
OpamTypes.dirname ->
OpamStateTypes.nameopt_and_file_w_url listval name_of_opam_filename :
?locked:string ->
OpamTypes.dirname ->
OpamTypes.filename ->
OpamTypes.name optionFrom 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 :
'a OpamStateTypes.switch_state ->
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. As it read from repository, use this function if you need to preserve format, otherwise prefer OpamSwitchState.overlay_opam_file.