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
Hi,
This is the intended behavior, there's no difference between "version" and version in dune files. To generate version variable in opam files, use :version in the dune file:
(depends (bug-lib (= :version)))
I'll add that as an example in the docs.
emillon
added a commit
to emillon/dune
that referenced
this issue
Jul 22, 2024
Expected Behavior
When
generate_opam_files
is enabled and a dependency has the constraint(= version)
, the opam file should contain the constraint{= version}
Actual Behavior
The constraint is currently
{= "version"}
.Reproduction
By using the following
dune-project
file:and the following
dune
file:with an empty
bug.ml
file, the commanddune build
will generate thebug.opam
file.Specifications
dune
(output ofdune --version
): 3.16.0ocaml
(output ofocamlc --version
): 5.2.0The text was updated successfully, but these errors were encountered: