record Git revision in devel builds#10541
Conversation
c00f498 to
39b5fae
Compare
I did come up with a reasonable situation where |
|
Hey @geekosaur! Do you have any plans around this one? It'd be great to have the SHA one way or another... |
|
Also, someone checked "significant" in the checklist. The thing is, this only changes behavior for development builds; it won't be in release builds, because we can't use TH in those (consider that there's a Debian maintainer making unregisterised ghc builds for s390x and ppc64le among others), so I'm not sure it needs to be in release notes at all. |
ulysses4ever
left a comment
There was a problem hiding this comment.
I don't think we need separate git info machinery for the library and the tool since they live in the same repository. Maybe some corner cases could benefit from it but I doubt they appear in practice often enough to justify the sensitive cost of CPP (and code duplication between cabalGitInfo and cabalInstallGitInfo). I also don't see much value in the (in tree) label: I'd be happier with a binary choice --- SHA or no SHA depending on the flag --- if this saves on the duplication and the CPP.
I'd also try to avoid adding any more CPP at all costs. The usual hack with two modules conditionally employed in the cabal file based on the flag would be my preferred way.
But as discussed elsewhere, we really need this feature ASAP, so I don't want to hold this any longer.
`cabal --version` in such builds will include the Git commit and branch (if not `master`).
|
@mergify backport 3.14 |
✅ Backports have been createdDetails
|
|
There are conflicts and this is not an urgent fix, so I propose to skip the 3.14 backport. |
cabal --versionin such builds will include the Git commit and branch (if notmaster).I've already been informed that this is not appropriate, but maybe someone will find something worth salvaging in it. It is also incomplete insofar as it needs a changelog entry and such (but probably not a test).
Consider this my last submission.
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significantin the changelog file.