In the documentation on generating .opam files, it says
dune will generate
.opamfiles if thedune-projectfile
- sets
(generate_opam_files true), and- declares one or more packages as per, Declaring a package.
For a build I’m setting up, I would need dune to generate the .opam file, from the specification in dune-project, in order to afterwards run opam install ., after which the actual package can be built with dune build.
But what actually triggers generating the .opam file? Can dune just generate that file, and then exit?