Repository navigation
Pin the OCaml libraries linked into the release binaries - #9269
Conversation
The opam cache key is the hash of the *.opam files, so a library without an exact version floats to whatever opam serves when a platform's cache is rebuilt, as lsp 1.28 did before #9234. Every library in the binaries now has an exact version, including those that come in through lsp and luv. ppx_yojson_conv_lib v0.17.0 needs OCaml 5.1, so its range lets the OCaml 5.0 job use v0.16.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLboTZTRoQAbXc4ZzC Signed-off-by: Christoph Knittel <ck@cca.io>
Changelog🏠 Internal
Semantic Diff1 commit · Full page Pin the OCaml libraries linked into the release binariesdb7c23d · cknitt + Claude · Nov 08, 2026, 20:34 UTC The opam cache key is the hash of the *.opam files, so a library without an exact version floats to whatever opam serves when a platform's cache is rebuilt, as lsp 1.28 did before #9234. Every library in the binaries now has an exact version, including those that come in through lsp and luv. ppx_yojson_conv_lib v0.17.0 needs OCaml 5.1, so its range lets the OCaml 5.0 job use v0.16.0. |
✅ Compiler benchmarksAllocated wordsIn total: 456,989,425 → 456,989,425 (±0.00%). None of the 257 benchmarks changed by 0.1% or more. InstructionsIn total: 10,226,961,817 → 10,226,961,817 (±0.00%). None of the 33 benchmarks changed by 0.1% or more. Pull request db7c23d compared with base d47adb3 in this run. |
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9269 |
The OCaml libraries linked into the release binaries now all have exact versions in
dune-project.The setup-ocaml cache is keyed by
hashFiles('*.opam'). A library without an exact version floats to whatever opam serves when a platform's cache is rebuilt, which can happen at different times on different platforms. That's how master broke on lsp 1.28 (#9234).Newly pinned, at the versions CI uses today:
rescriptrescriptanalysis>= 1.23.0 & < 1.28.0), jsonrpc 1.27.0, uutf 1.0.4analysis>= v0.16.0 & <= v0.17.0tools>= 0.3.0)ppx_yojson_conv_lib v0.17.0 requires OCaml 5.1, and
dune-project'sdependscan't express "exact unless OCaml 5.0". The range resolves to v0.17.0 on every release platform and to v0.16.0 in the OCaml 5.0 compatibility job.Build-only tools (dune, ppxlib, ppx_gen_rec, menhir) still float, because they don't end up in the binaries.
opam install . --deps-only --with-test --dry-runreports nothing to do on the current 5.5.2 switch. The changed*.opamhash makes this PR's CI rebuild every opam cache from scratch, so CI is the real test of the pins on all platforms and on OCaml 5.0.A full opam lock file wasn't used.
opam lockrecords one platform's solution, including the compiler, and CI builds three compiler setups across Linux, macOS and Windows.Related: #8594 generates the license notices from the same switch.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gLboTZTRoQAbXc4ZzC