From: Matt Corallo Date: Wed, 9 Jun 2021 19:13:59 +0000 (+0000) Subject: Use 16 hexits for git describe to avoid nondeterminism X-Git-Tag: v0.0.98~1^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d5b938c284c50502ecba3a1e6f6a4ee93e06da64;p=ldk-c-bindings Use 16 hexits for git describe to avoid nondeterminism --- diff --git a/genbindings.sh b/genbindings.sh index a51f04a..b5cbca3 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -15,7 +15,7 @@ export LC_ALL=C ORIG_PWD="$(pwd)" cd "$1" LIGHTNING_PATH="$(pwd)" -LIGHTNING_GIT="$(git describe --tag --dirty)" +LIGHTNING_GIT="$(git describe --tag --dirty --abbrev=16)" cd "$ORIG_PWD" # Generate (and reasonably test) C bindings @@ -33,7 +33,7 @@ mv lightning-c-bindings/src/bitcoin ./ git checkout lightning-c-bindings/src git checkout lightning-c-bindings/include -BINDINGS_GIT="$(git describe --tag --dirty)" +BINDINGS_GIT="$(git describe --tag --dirty --abbrev=16)" echo -e "#ifndef _LDK_HEADER_VER" > lightning-c-bindings/include/ldk_ver.h echo -e "static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {" >> lightning-c-bindings/include/ldk_ver.h echo -e "\tif (n && *s1 != *s2) return 1;" >> lightning-c-bindings/include/ldk_ver.h