package opam-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Pin subcommand.

val pin : OpamTypes.name -> ?version:OpamTypes.version -> OpamTypes.pin_option -> bool option

Pin a package. Returns Some is_same_version if the package should be reinstalled (or upgraded if is_same_version is false)

val edit : OpamState.state -> OpamTypes.name -> bool option

Let the user edit a pinned package's opam file. Returns Some is_same_version if the package should be rebuilt. raises Not_found if no valid opam file is available and the user didn't succeed in producing one.

val unpin : ?state:OpamState.state -> OpamTypes.name list -> OpamTypes.name list

Unpin packages. Returns the list of packages that should be rebuilt

val list : short:bool -> unit -> unit

List the pinned packages.

OCaml

Innovation. Community. Security.