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
I am trying to use target directories to generate a dune file that generates a binary and then extract that binary from there. But it doesn't seem to work. I think this is expected to work, but I am not totally sure I am doing the right thing.
$ dune build
File "dune", line 1, characters 0-95:
1 | (rule
2 | (targets (dir foo))
3 | (mode promote)
4 | (deps ./config.sh)
5 | (action (run ./config.sh)))
Error: This rule defines a directory target "foo" that matches the requested
path "foo/main.exe" but the rule's action didn't produce it
-> required by _build/default/main.exe
-> required by alias all
-> required by alias default
The text was updated successfully, but these errors were encountered:
I guess this is expected: a1c7151 seems to indicate that directory targets cannot contain generated sources. Do you think this restriction could be lifted?
I am trying to use target directories to generate a
dune
file that generates a binary and then extract that binary from there. But it doesn't seem to work. I think this is expected to work, but I am not totally sure I am doing the right thing.Here is a repro: https://github.com/samoht/dune-crash/tree/main/2
The error is:
The text was updated successfully, but these errors were encountered: