From 3e0c9070669c770e539d11c638f2f9a59b397e6e Mon Sep 17 00:00:00 2001 From: Sorawee Porncharoenwase Date: Wed, 13 Mar 2024 10:52:02 +0700 Subject: [PATCH] tool: add an upper bound to avoid the breaking change in MDX https://github.com/realworldocaml/mdx/pull/446 adds an ability to run included blocks. Our included block is not meant to be run, however, and it appears that there's no easy way to skip the running. So as a temporary workaround, we set the upper bound on the MDX version until a satisfactory solution emerges. --- dune-project | 2 +- pretty_expressive.opam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dune-project b/dune-project index 218390b..aa0c273 100644 --- a/dune-project +++ b/dune-project @@ -25,5 +25,5 @@ (description "A pretty printer implementation of 'A Pretty Expressive Printer' (OOPSLA'23), with an emphasis on expressiveness and optimality.") (depends (ocaml (>= 4.05)) dune - (mdx (and (>= 2.3.0) :with-test)) + (mdx (and (>= 2.3.0) (<= 2.3.1) :with-test)) (alcotest :with-test))) diff --git a/pretty_expressive.opam b/pretty_expressive.opam index 8b989f5..0f2054e 100644 --- a/pretty_expressive.opam +++ b/pretty_expressive.opam @@ -13,7 +13,7 @@ bug-reports: "https://github.com/sorawee/pretty-expressive-ocaml/issues" depends: [ "ocaml" {>= "4.05"} "dune" {>= "3.10"} - "mdx" {>= "2.3.0" & with-test} + "mdx" {>= "2.3.0" & <= "2.3.1" & with-test} "alcotest" {with-test} "odoc" {with-doc} ]