Skip to content

Sync dune-project with opam dependencies#8423

Open
aspeddro wants to merge 2 commits into
rescript-lang:masterfrom
aspeddro:sync-dune-opam
Open

Sync dune-project with opam dependencies#8423
aspeddro wants to merge 2 commits into
rescript-lang:masterfrom
aspeddro:sync-dune-opam

Conversation

@aspeddro
Copy link
Copy Markdown
Contributor

The .opam files declared dependencies (cppo, flow_parser, ocamlformat, yojson, ounit2, odoc, ocaml-lsp-server, js_of_ocaml, wasm_of_ocaml-compiler) that were not present in dune-project. For the rescript package those deps were sourced from rescript.opam.template, which fully overrode what dune-project would have generated. For analysis and tools, the odoc {with-doc} entry was missing entirely.

Move all dependencies into dune-project so it is the single source of truth, and shrink rescript.opam.template to only the pin-depends: block for the flow_parser fork — the one field dune-project cannot express. The regenerated .opam files are equivalent to the previous ones.

The .opam files declared dependencies (cppo, flow_parser, ocamlformat,
yojson, ounit2, odoc, ocaml-lsp-server, js_of_ocaml,
wasm_of_ocaml-compiler) that were not present in dune-project. For the
rescript package those deps were sourced from rescript.opam.template,
which fully overrode what dune-project would have generated. For
analysis and tools, the odoc {with-doc} entry was missing entirely.

Move all dependencies into dune-project so it is the single source of
truth, and shrink rescript.opam.template to only the pin-depends: block
for the flow_parser fork — the one field dune-project cannot express.
The regenerated .opam files are equivalent to the previous ones.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 12, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8423

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8423

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8423

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8423

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8423

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8423

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8423

commit: 0bd2deb

Comment thread dune-project
Comment on lines +22 to +45
(>= 5.0.0))
(cppo
(= 1.8.0))
(flow_parser
(= 0.267.0))
(ocamlformat
(and :with-test (= 0.27.0)))
(yojson
(and :with-test (= 2.2.2)))
(ounit2
(and :with-test (= 2.2.7)))
(odoc :with-doc)
(ocaml-lsp-server
(and :with-dev-setup (= 1.22.0)))
(js_of_ocaml
(and
(<> :os "win32")
:with-test
(= 6.0.1)))
(wasm_of_ocaml-compiler
(and
(<> :os "win32")
:with-test
(= 6.0.1)))))
Copy link
Copy Markdown
Contributor Author

@aspeddro aspeddro May 12, 2026

Choose a reason for hiding this comment

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

The changes made in #7349 removed deps from dune-project

@aspeddro aspeddro marked this pull request as ready for review May 12, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant