Ensure the dune-project
file has the generate opam file directive
(generate_opam_files true)
Any dune command call will generate the .opam
file
And the deps specified can be installed with opam
❯ opam install --deps-only --with-test .
Ensure the dune-project
file has the generate opam file directive
(generate_opam_files true)
Any dune command call will generate the .opam
file
And the deps specified can be installed with opam
❯ opam install --deps-only --with-test .
Using direnv
+ opam
via the following .envrc
export OPAMSWITCH="$HOME/path/to/opam/switch"
eval $(opam env)