-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the out-of-date opam warning after the release of opam 2.2.1 #26393
Conversation
…opam 2.0 Co-authored-by: Anil Madhavapeddy <anil@recoil.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tweak just to report the version of opam that is being rejected, just to allow for the case where the user (might) not be running the version they think they are.
@@ -4,9 +4,9 @@ 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apropos this Discuss thread, I think it would be sensible to include the “offending” opam version in the message:
[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) |
""" | ||
[INFO] opam 2.1 and 2.2 include many performance 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 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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) |
(similarly; I double-checked that opam 2.0.0 expands variables in post-messages!)
2.2.1 has been released, undrafting. |
I missed the udpates above, I will send a separate PR for those |
Suggested by @dra27 on ocaml#26393 Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
Suggested by @dra27 on ocaml#26393 Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
To merge once the Discuss post is published