IntersectMBO / cardano-base

Code used throughout the Cardano eco-system
Apache License 2.0
95 stars 41 forks source link

Add cardano-git-rev package #466

Closed erikd closed 8 months ago

erikd commented 8 months ago

This package was originally in the cardano-node repo but was also used in cardano-cli. However this package exports a function gitRev but the way its built can result in an incorrect git hash.

The solution is the change the gitRev function into TH splce so that it will always be run at the call site.

Now that this operates correctly, it makes more sense for this package to be here so it can be used in any executable in the Cardano/Haskell stack.