We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e69191 commit 9851f82Copy full SHA for 9851f82
1 file changed
version
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
-version=`git log --date=iso --pretty=format:"%cd @%H @" -1 && git describe --tag`
+version=`git log --date=iso --pretty=format:"%cd @%H" -1`
4
if [ $? -ne 0 ]; then
5
version="unknown version"
6
fi
@@ -10,6 +10,11 @@ if [ $? -ne 0 ]; then
10
compile="unknown datetime"
11
12
13
+describe=`git describe --tags 2>/dev/null`
14
+if [ $? -eq 0 ]; then
15
+ version="${version} @${describe}"
16
+fi
17
+
18
cat << EOF | gofmt > pkg/utils/version.go
19
package utils
20
0 commit comments