You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dune utop
Building ocaml.5.2.0
File "_build/default", line 1, characters 0-0:
Error: Library "utop" not found.
-> required by _build/default/.utop/utop.bc
Reproduction
1.dune init project dune_utop_test
1.cd dune_utop_test
1.Change the depends line to (depends ocaml dune (utop :dev))
1.dune pkg lock
1.dune build
1.dune utop
Operating system (distribution and version):
Fedora 40
Additional information
Would be good if utop and other "tools" could be added to the "dev dependencies" lock, without actually becoming visible/available for the project itself. opam doesn't really have good support for this either (there is some limited support for installing e.g. the opam monorepo plugin into a tools switch?), but the new dune preview seems to support separate developer tool lockfiles, where tools like the LSP server, and ocamlformat go.
The text was updated successfully, but these errors were encountered:
Actually I'm not sure whether :dev depencies would be the right way to support utop, they're probably more appropriate for optional dependencies (e.g. benchmarking tools) that you do want available in your build environment to activate various optional build rules.
dune already has a dune utop subcommand, so it'd be good if that installed utop as a dev tool automatically, just like how dune fmt installs ocamlformat.
Expected Behavior
dune utop
worksActual Behavior
Reproduction
1.dune init project dune_utop_test
1.cd dune_utop_test
1.Change the depends line to
(depends ocaml dune (utop :dev))
1.dune pkg lock
1.dune build
1.dune utop
Specifications
dune
(output ofdune --version
):ocaml
(output ofocamlc --version
):Fedora 40
Additional information
Would be good if
utop
and other "tools" could be added to the "dev dependencies" lock, without actually becoming visible/available for the project itself.opam
doesn't really have good support for this either (there is some limited support for installing e.g. theopam monorepo
plugin into a tools switch?), but the new dune preview seems to support separate developer tool lockfiles, where tools like the LSP server, and ocamlformat go.The text was updated successfully, but these errors were encountered: