Skip to content

Commit

Permalink
Improve INFO and WARNING for the opam version
Browse files Browse the repository at this point in the history
Suggested by @dra27 on ocaml#26393

Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
  • Loading branch information
mseri committed Aug 27, 2024
1 parent 2aa562a commit d9168d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ browse: "https://opam.ocaml.org/pkg/"
upstream: "https://github.com/ocaml/opam-repository/tree/master/"
announce: [
"""
[WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)
[WARNING] opam %{opam-version}% is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)
""" {(opam-version >= "2.1.0~~" & opam-version < "2.1.6") | opam-version < "2.0.10" | (opam-version >= "2.2.0~~" & opam-version < "2.2.1")}
"""
[INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)
[INFO] opam 2.1 and 2.2 include many performance and security improvements over %{opam-version}%; please consider upgrading (https://opam.ocaml.org/doc/Install.html)
""" {opam-version >= "2.0.10" & opam-version < "2.1.0~~"}
"""
[WARNING] please ensure to have GNU patch installed as `patch`. Otherwise update may fail silently (since it can't remove files).
Expand Down

0 comments on commit d9168d4

Please sign in to comment.