-
Notifications
You must be signed in to change notification settings - Fork 120
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
Always generate the manifest #863
base: sail2
Are you sure you want to change the base?
Conversation
This fixes an annoying issue where the `sail -version` output does not get correctly generated unless you manually delete `manifest.ml`. If you do not then Dune will see that `manifest.ml` already exists and assume it is up-to-date, which isn't the case if you've switch branch or commit since it was last generated. This does mean that `sail_manifest` is always run, but it seems to be very fast so I don't think it's an issue.
I think the issue is when you build via |
I've had so much trouble with opam I always use |
I think adding |
Ah, I saw you removed I think the trick is we can have both |
Now I've carefully read some of the dune documentation a bit more I wonder if there is a way to use |
Oh I see, I misread your comment about opam. I think I looked into (promote) a while ago when I was trying to make go-to-definition work with generated files, but IIRC there's a gotcha in that it doesn't do anything in release mode. Something like that anyway. |
This fixes an annoying issue where the
sail -version
output does not get correctly generated unless you manually deletemanifest.ml
. If you do not then Dune will see thatmanifest.ml
already exists and assume it is up-to-date, which isn't the case if you've switch branch or commit since it was last generated.This does mean that
sail_manifest
is always run, but it seems to be very fast so I don't think it's an issue.Fixes #204