Skip to content
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

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

kit-ty-kate
Copy link
Member

To merge once the Discuss post is published

repo Outdated Show resolved Hide resolved
…opam 2.0

Co-authored-by: Anil Madhavapeddy <anil@recoil.org>
Copy link
Member

@dra27 dra27 left a 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)
Copy link
Member

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:

Suggested change
[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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[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!)

@rjbou rjbou marked this pull request as ready for review August 26, 2024 13:21
@rjbou
Copy link
Contributor

rjbou commented Aug 26, 2024

2.2.1 has been released, undrafting.

@mseri mseri merged commit 2aa562a into ocaml:master Aug 27, 2024
3 checks passed
@mseri
Copy link
Member

mseri commented Aug 27, 2024

I missed the udpates above, I will send a separate PR for those

mseri added a commit to mseri/opam-repository that referenced this pull request Aug 27, 2024
Suggested by @dra27 on ocaml#26393

Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
avsm pushed a commit to avsm/opam-repository that referenced this pull request Sep 5, 2024
Suggested by @dra27 on ocaml#26393

Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants