diff --git a/analysis.opam b/analysis.opam index 5d7e02ae51..982612de8c 100644 --- a/analysis.opam +++ b/analysis.opam @@ -10,7 +10,10 @@ depends: [ "dune" {>= "3.17"} "ocaml" {>= "5.0.0"} "odoc" {with-doc} - "lsp" {>= "1.23.0" & < "1.28.0"} + "lsp" {= "1.27.0"} + "jsonrpc" {= "1.27.0"} + "uutf" {= "1.0.4"} + "ppx_yojson_conv_lib" {>= "v0.16.0" & <= "v0.17.0"} "yojson" {= "3.0.0"} ] build: [ diff --git a/changes/pin-shipped-opam-deps.internal.md b/changes/pin-shipped-opam-deps.internal.md new file mode 100644 index 0000000000..03803f9c48 --- /dev/null +++ b/changes/pin-shipped-opam-deps.internal.md @@ -0,0 +1 @@ +- Pin the exact versions of all OCaml libraries linked into the release binaries, so every platform builds with the same versions whenever its opam cache is rebuilt. diff --git a/dune-project b/dune-project index ae9c9b0e53..7ae75344d2 100644 --- a/dune-project +++ b/dune-project @@ -23,9 +23,11 @@ dune (ppxlib (>= 0.38.0)) - (ppx_deriving :build) + (ppx_deriving + (and :build (= 6.2.0))) (ppx_gen_rec :build) - wtf8 + (wtf8 + (= 1.0.2)) (ocamlformat (and :with-test (= 0.29.0))) (yojson @@ -36,6 +38,13 @@ (= 2.1.1)) (luv (= 0.5.14+rescript.1)) + ; Linked into the build system through luv. + (ctypes + (= 0.24.0)) + (integers + (= 0.8.0)) + (stdlib-shims + (= 0.3.0)) (re (= 1.14.0)) (ounit2 @@ -62,9 +71,17 @@ (>= 5.0.0)) (odoc :with-doc) (lsp + (= 1.27.0)) + ; Linked into the binaries through lsp. + (jsonrpc + (= 1.27.0)) + (uutf + (= 1.0.4)) + ; v0.17.0 needs OCaml 5.1; the OCaml 5.0 CI job gets v0.16.0. + (ppx_yojson_conv_lib (and - (>= 1.23.0) - (< 1.28.0))) + (>= v0.16.0) + (<= v0.17.0))) (yojson (= 3.0.0)))) @@ -75,7 +92,7 @@ (ocaml (>= 5.0.0)) (cmarkit - (>= 0.3.0)) + (= 0.4.0)) analysis (yojson (= 3.0.0)) diff --git a/rescript.opam b/rescript.opam index cea2b62ff5..9edebe7a03 100644 --- a/rescript.opam +++ b/rescript.opam @@ -10,14 +10,17 @@ depends: [ "ocaml" {>= "5.0.0"} "dune" {>= "3.17"} "ppxlib" {>= "0.38.0"} - "ppx_deriving" {build} + "ppx_deriving" {build & = "6.2.0"} "ppx_gen_rec" {build} - "wtf8" + "wtf8" {= "1.0.2"} "ocamlformat" {with-test & = "0.29.0"} "yojson" {= "3.0.0"} "spawn" {= "v0.17.0"} "cmdliner" {= "2.1.1"} "luv" {= "0.5.14+rescript.1"} + "ctypes" {= "0.24.0"} + "integers" {= "0.8.0"} + "stdlib-shims" {= "0.3.0"} "re" {= "1.14.0"} "ounit2" {with-test & = "2.2.7"} "odoc" {with-doc} diff --git a/tools.opam b/tools.opam index a1657f5a44..8f751de508 100644 --- a/tools.opam +++ b/tools.opam @@ -9,7 +9,7 @@ bug-reports: "https://github.com/rescript-lang/rescript-compiler/issues" depends: [ "dune" {>= "3.17"} "ocaml" {>= "5.0.0"} - "cmarkit" {>= "0.3.0"} + "cmarkit" {= "0.4.0"} "analysis" "yojson" {= "3.0.0"} "odoc" {with-doc}