Partially fix tests #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since mgit is not a public executable it will not be present in $PATH - so we must use %{exe:...} over %{bin:...}.
The fix is partial because the (enabled_if ...) stanza doesn't work correctly for me at least. To fix it I tried the following without success...
Oh! I see, it's
%{read:...}
not{%read:...}
! But I still get an error:I tried as well to move git_daemon_exists.ml to a subdirectory as suggested here without luck https://dune.readthedocs.io/en/stable/concepts/variables.html#:~:text=The%20reason%20you,creates%20a%20cycle.
So, the existing
(enabled_if ...)
stanza basically disables the tests always :/ I opened an issue with dune because the documentation seems to suggest it's possible to use(enabled_if %{read:git_daemon_exists})
, but I can't find a configuration where it doesn't complain about%{read:..}
not being allowed in this position.https://github.com/ocaml/dune/issues/11042
could we remove the
enabled_if
entirely, and live with the situation that we need someconf-git-daemon
for tests?for me, the proposed changes here look fine.
Yes, I think it is fine to remove. We can add it back if the dune issue gets resolved.