Skip to content

Commit 5d07500

Browse files
Avoid picking result < 1.5
If some dependency pulls an older `result` as a dependency, it will shadow the Result module and cause failures because it doesn't expose the expected functions. Thanks to @kit-ty-kate.
1 parent 9778672 commit 5d07500

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dune-project

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@
3838
(>= 2.3.0))
3939
(odoc-parser (>= 1.0.0))
4040
(lwt :with-test)
41-
(alcotest :with-test)))
41+
(alcotest :with-test))
42+
(conflicts
43+
(result (< 1.5))))

mdx.opam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ depends: [
3434
"alcotest" {with-test}
3535
"odoc" {with-doc}
3636
]
37+
conflicts: [
38+
"result" {< "1.5"}
39+
]
3740
build: [
3841
["dune" "subst"] {dev}
3942
[

0 commit comments

Comments
 (0)