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
Error: No rule found for existing-dir
-> required by alias all
-> required by alias default
From #5097 description, it doesn't seem like existing-dir needs to have a target (what would it even be?) or that opam requires it to be generated somehow.
Also, as an aside, renaming target-dir to test makes dune change its error to:
Error: No rule found for existing-dir
-> required by alias all
-> required by alias default
File "dune", line 2, characters 8-20:
2 | (dirs (existing-dir as test))
^^^^^^^^^^^^
Error: This rule defines a target "test" whose name conflicts with an
internal directory used by Dune. Please use a different name.
I'm not sure to understand why test would be a forbidden target in lib_root.
The text was updated successfully, but these errors were encountered:
As per last week's dev meeting, this is a new feature so it's ok to have this limitation, so I'm moving this to 3.6.0. A better error message would be good and can be added in 3.5.0.
I remember trying to implement this before and realized it wasn't that easy. The main issue is that the current directory loading code has special handling for source directories so implementing this feature would require some deep changes to the rule loading.
Using dune master (7659e30 + #6119), the following project:
fails with:
From #5097 description, it doesn't seem like
existing-dir
needs to have a target (what would it even be?) or that opam requires it to be generated somehow.Also, as an aside, renaming
target-dir
totest
makes dune change its error to:I'm not sure to understand why
test
would be a forbidden target inlib_root
.The text was updated successfully, but these errors were encountered: