package opam-client

  1. Overview
  2. Docs
val pin : OpamStateTypes.rw OpamStateTypes.switch_state -> OpamPackage.Name.t -> ?edit:bool -> ?version:OpamTypes.version -> ?action:bool -> ?subpath:OpamTypes.subpath -> ?locked:string -> [< `Source of OpamTypes.url | `Version of OpamTypes.version | `Dev_upstream | `Source_version of OpamTypes.version * OpamTypes.version | `None ] -> OpamStateTypes.rw OpamStateTypes.switch_state

Set a package pinning. If action, prompt for install/reinstall as appropriate after pinning.

val url_pins : OpamStateTypes.rw OpamStateTypes.switch_state -> ?edit:bool -> ?action:bool -> ?locked:string -> ?pre:(OpamStateTypes.pinned_opam -> unit) -> OpamStateTypes.pinned_opam list -> OpamStateTypes.rw OpamStateTypes.switch_state
val list : 'a OpamStateTypes.switch_state -> short:bool -> unit

List the current pinned packages.

val post_pin_action : OpamStateTypes.rw OpamStateTypes.switch_state -> OpamTypes.package_set -> OpamTypes.name list -> OpamStateTypes.rw OpamStateTypes.switch_state

Runs an install/upgrade on the listed packages if necessary. post_pin_action st was_pinned names takes the set of packages pinned beforehand, and a list of newly pinned packages

OCaml

Innovation. Community. Security.