package opam-core

  1. Overview
  2. Docs

Module OpamVersionSource

(generated) Current OPAM version

include OpamStd.ABSTRACT
Sourcetype t
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval to_json : t -> OpamJson.t
Sourcemodule Set : OpamStd.SET with type elt = t
Sourcemodule Map : OpamStd.MAP with type key = t
Sourceval current : t

The current OPAM version

Sourceval major : t -> t

Extracts the major version

Sourceval nopatch : t -> t

Major+minor version, strips the patch version

Sourceval current_nopatch : t

The current OPAM version, truncated (only MAJOR.MINOR)

Sourceval git : unit -> t option

The 'git' version of OPAM

Sourceval set_git : string -> unit

Side-effect to set the git version later in the build

Sourceval full : unit -> t

The full version (current + git)

Sourceval magic : unit -> string

Magic string, always of length 8

Sourceval message : unit -> unit

Display the version message

Sourceval compare : t -> t -> int

Version comparison

OCaml

Innovation. Community. Security.