commit a797f771f3efc1a5bf72260579e0bcb9881267ac
Author: Elan Ruusamäe <[email protected]>
Date: Wed Aug 15 17:20:43 2018 +0300
fix version option output
gitlab-runner.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-runner.spec b/gitlab-runner.spec
index 5484d8f..3fe981f 100644
--- a/gitlab-runner.spec
+++ b/gitlab-runner.spec
@@ -78,7 +78,8 @@ export PATH=$(pwd):$PATH
%{__make} version | tee version.txt
CN=gitlab.com/gitlab-org/gitlab-runner/common
-LDFLAGS="-X $CN.NAME=gitlab-runner -X $CN.VERSION=%{version} -X
$CN.REVISION=%{version}"
+DT=$(date -u +%%Y-%%m-%%dT%%H:%%M:%%S%%:z)
+LDFLAGS="-X $CN.VERSION=%{version} -X $CN.REVISION=v%{version} -X
$CN.BRANCH=v%{version} -X $CN.BUILT=$DT"
%gobuild
# verify that version matches
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-runner.git/commitdiff/a797f771f3efc1a5bf72260579e0bcb9881267ac
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit