-
Notifications
You must be signed in to change notification settings - Fork 697
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
cabal --version
on a non-release build should include a Git commit
#10528
Comments
There's at least one package that provides this information automatically, but I'm not sure we want it as a dependency even if it's restricted to |
cabal --version
on a non-release build should include a Git commit.cabal --version
on a non-release build should include a Git commit
And I'm a daily user of cabal |
…the first two I found require TH, so no-go. I may have to cons up my own, although TH is by far the easiest way to do it. |
The other way to do it is custom Setup for |
There is also the option of reading the data at run-time from a data-file, although now we have to properly install cabal as a package and not just as a lone binary |
A flag could help to deal with it? I have been wanting to tackle this issue since day one of cabal-head because the current state is deeply unsatisfactory. We should implement a solution no matter what. And we can always improve the implementation down the road. |
Re data-files: they work great for |
@geekosaur TH being a no-go is a GHC-related limitation? We can control this behaviour with some good old CPP, and only enable this if we're building a |
It's about platforms that don't have the bytecode backend but do need cabal. (ARM used to fit here, I don't know what currently supported platforms do but there's something somewhere in the tree saying that TH is forbidden in the codebase for this reason.) |
I see, thank you. |
Template Haskell is a non-issue if this is hidden behind a flag |
I wonder if there's a good way to ask if TH is supported without using custom Setup (there's no |
I suppose there's also just requiring development to be on platforms with working TH, but I feel like that's poor devx. |
This has been bugging me too, as a daily user of cabal-head, this would be greatly appreciated. (@Kleidukos)
(#10483 (comment) ff.)
The text was updated successfully, but these errors were encountered: