From 6fe2f506982e7c34796e3b75fe5da7d7726e270e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Thu, 12 Oct 2023 12:44:12 +0100 Subject: [PATCH] fix(dune): gen_lifecycle depends on git describe output, which is outside of the normal source and build dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this when using the dune cache 'update-dm-lifecycle' will print the wrong version numbers. Signed-off-by: Edwin Török --- ocaml/idl/dune | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/idl/dune b/ocaml/idl/dune index 4e550eff2a..3dfa75af8c 100644 --- a/ocaml/idl/dune +++ b/ocaml/idl/dune @@ -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