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

Use fmt 0.9.0 to prevent conflict with the result library #802

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

Halbaroth
Copy link
Collaborator

@Halbaroth Halbaroth commented Sep 11, 2023

This PR prevent conflict with old version of the library result. After this PR, Alt-Ergo depends on this library through Fmt >= 0.9.0.

We have to backport this fix on the branch v2.5.x.

@Halbaroth Halbaroth added this to the 2.5.0 milestone Sep 11, 2023
@bclement-ocp
Copy link
Collaborator

result is only needed for compatibility with OCaml < 4.03. If fmt is the issue shouldn't we rather require fmt >= 0.8.6 (0.8.6 dropped the dependency on result) or fmt >= 0.9.0 (0.9.0 has some API incompatibilities, might as well stay safe from our own future mistakes)?

Comment on lines 10 to 12
conflicts: [
"result" {< "1.5"}
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dependencies should be specified in the dune-project (here with a (conflicts) field in the package declaration, see https://dune.readthedocs.io/en/stable/dune-files.html#stanza-package ), not in the template file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I didn't find the right stanza.

@Halbaroth Halbaroth changed the title Prevent conflict with result < 1.5 Use fmt 0.9.0 to prevent conflict with the result library Sep 11, 2023
@Halbaroth Halbaroth merged commit 7b5094d into OCamlPro:next Sep 11, 2023
10 checks passed
Halbaroth added a commit to Halbaroth/alt-ergo that referenced this pull request Sep 15, 2023
* conflict with result < 1.5

* Use fmt >= 0.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants