[BTG-32] Fix git revision inclusion
Description
Problem: in 'DGitRevision' documentation item I called template haskell which fetches commit sha and date internally rather than at call site, and this is obviously incorrect as can observed in depending projects.
Solution: make 'mkDGitRevision' function return TH expression which yet should be instantiated.
Related issue(s)
https://issues.serokell.io/issue/BTG-32
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov