tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
958 stars 83 forks source link

Ormolu built with nix does not show branch and commit it was compiled from #342

Closed mrkkrp closed 3 years ago

mrkkrp commented 5 years ago

Somewhat minor, but still when ormolu is compiled using nix, we get this:

mark@fou ~/p/t/ormolu> ormolu --version
ormolu 0.0.1.0 UNKNOWN UNKNOWN
using ghc 8.6.5

It would be nice to get actual branch and commit info here.

mrkkrp commented 3 years ago

This becomes more of a nuisance now that we're building release binaries with Nix. It would be nice for the binaries to show correct branch and commit info, e.g.:

$ ormolu --version
ormolu 0.2.0.0 amesgen/issue-517 4889228fa09f1651c9bbdfd7d7fefc09fa3125a1
using ghc-lib-parser 9.0.1.20210324