-
Notifications
You must be signed in to change notification settings - Fork 77
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
Output either release version or commit hash #483
Conversation
Having both for any kind of release is very much useful to avoid mixups. For example, all the SV-COMP submissions are locally tagged with |
Okay, I agree with svcomp having a precise version id printed is useful, but having the hashes in our opam releases is like admitting we don't trust our release process. |
I suspect installing directly from opam without out repository won't even have the commit hash because it doesn't use the git repository for getting the sources, but a source archive, and using our This could be avoided if we didn't use our script (or even a shell command in a dune rule), but also another substitution like There's also another difference. Our script uses I've found a third way of doing this: https://dune.readthedocs.io/en/stable/dune-libs.html#build-info. According to that description, it works for both releases (just containing the version number, no commit hash) and development ( In conclusion, there's no good way to do it exactly as we might want right now. I'll have to rethink this for 2.0 by maybe combining some of the above to get everything to work in all the possible build and install scenarios. |
This should be fairly non-controversial, but it needs review because I'm not 100% this would actually do what I want for a release version... Also, I started to doubt the idea of either showing the proper release version or the git hash (never both): is there a need somewhere (e.g. sv-comp) where displaying both would be good to precisely identify the competing version?