- description: |
Fixed git revision showed by --version flag when built using nix
# uncomment types applicable to the change:
type:
# - feature # introduces a new feature
# - breaking # the API has changed in a breaking way
# - compatible # the API has changed but is non-breaking
# - optimisation # measurable performance improvements
# - improvement # QoL changes e.g. refactoring
- bugfix # fixes a defect
# - test # fixes/modifies tests
# - maintenance # not directly related to the code
# - release # related to a new release preparation
# - documentation # change in code docs, haddocks...
Changelog
Context
Addresses this issue: https://github.com/IntersectMBO/cardano-cli/tree/bug-all-zeros-git-revision
How to trust this PR
It can be tested with and without the
__GIT_REV__
compiler flag and see that it works either way.The other thing to pay attention to, is that I have only modified the default logic (when both
gitRevEmbed
andfromGit
are empty)Checklist