Subject: [PATCH] testing/ali: adds git rev for help command

From: Marvin Preuss <[email-masked]>
Date: Fri, 20 Aug 2021 11:58:19 +0200

---
 testing/ali/APKBUILD | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/testing/ali/APKBUILD b/testing/ali/APKBUILD
index b99f0b3aa6..caf1efc2e7 100644
--- a/testing/ali/APKBUILD
+++ b/testing/ali/APKBUILD
@@ -2,7 +2,10 @@
 # Maintainer: Marvin Preuss <[email-masked]>
 pkgname=ali
 pkgver=0.7.2
-pkgrel=1
+# this is used for the help command to print the commit.
+# needs to be changed on every release.
+_rev=910942e
+pkgrel=2
 pkgdesc="Generate HTTP load and plot the results in real-time"
 url="https://github.com/nakabonne/ali"
 arch="all"
@@ -20,7 +23,7 @@ build() {
 		-ldflags "
 		-X \"main.version=$pkgver\" \
 		-X \"main.date=$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})\" \
-		-X \"main.commit=none\" \
+		-X \"main.commit=$_rev\" \
 		"
 }
 
-- 
2.33.0