Skip to content

Git hash not being shown #13

@ranjitjhala

Description

@ranjitjhala

Hi @chrisdone -- I was using optparse-simple to show the git hash when running LH, but somehow after updating to GHC 8.6.4 this stopped working. I've made a minimal example
at this repo:

https://github.com/ranjitjhala/hash-test

If you clone and build, you get the following:

rjhala@borscht ~/t/hash-test (master)> stack build --fast
...
rjhala@borscht ~/t/hash-test (master)> stack exec -- htest 0
Version 0.1.0.0, Git revision 5bbb05f54b8a2500ee2f32d96d443c5621c778f5 (dirty)
rjhala@borscht ~/t/hash-test (master)> stack exec -- htest 10
Version 0.1.0.0

The only difference between the two, is that:

  1. the first one is a modification of your code from simpleVersion that uses $$tGitInfoCwd (instead of $$tGitInfoCwdTry);
  2. the second one directly uses simpleVersion from Options.Applicative.Simple.

Any idea what may be going on?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions