-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCUMENTATION][IMPROVEMENT] Runtest vs compilation #11217
Comments
Thanks for reporting! Indeed, it might be interesting to add somewhere that as @rgrinberg I'm curious here, what is the reason why |
|
@Alizter thanks for the answer. Sorry, my question was ambiguous! I was wondering what is the reason behind attaching |
@maiste Here is the original design discussion: I think the decision mostly comes from a place of "what is the easiest set of defaults so that most users build what they want". Having |
So the alias |
Oh, I see. Indeed, it makes sense to define the default as what most users want. The improvement mentioned in this issue should lend in the https://dune.readthedocs.io/en/stable/reference/aliases/default.html page or in a How-to-guide like "How to change the behavior of the @default alias". |
This is about this discussion on zulip.
I had a situation where a library and an executable were built, and then that executable was run against various files to get Coq files, which were then compiled using Coq to check everything was ok.
The compilation part should have been: lib+exec, and the runtest part should have been: run exec, compare output, compile Coq file.
I had a hard time preventing running the Coq file at the compilation stage, and hence running exec at the compilation stage, although I was using some code to change the default target.
It turns out it was a documentation issue: it's not in the
tests/
directory one should do something about the default target, but in the above directory. The topleveldune
file had to do:in order to avoid executing everything in the
tests/
directory.The text was updated successfully, but these errors were encountered: