Skip to content

Commit

Permalink
fix(dune): gen_lifecycle depends on git describe output, which is out…
Browse files Browse the repository at this point in the history
…side of the normal source and build dependencies

Without this when using the dune cache 'update-dm-lifecycle' will print the wrong version numbers.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Oct 12, 2023
1 parent d90369d commit 6fe2f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/idl/dune
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
; use the binary promoted file from the source dir (not the build dir) that has
; the correct version number embedded
(rule
(deps gen_lifecycle.exe)
(deps gen_lifecycle.exe (universe))
(action (with-stdout-to datamodel_lifecycle.ml.generated (system %{project_root}/../../ocaml/idl/gen_lifecycle.exe))))

; 'diff' handles promotion too, see https://dune.readthedocs.io/en/stable/concepts.html?highlight=diffing#diffing-and-promotion
Expand Down

0 comments on commit 6fe2f50

Please sign in to comment.