Skip to content

Commit 9af523a

Browse files
committed
avoid accidentally using latest as tag
1 parent e4d8f15 commit 9af523a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get_build_info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
git rev-parse --short HEAD | tr -d "\n" > .git_commit
33
date +%FT%T%z | tr -d "\n" > .build_date
4-
git describe --tags --always | tr -d "\n" > .version
4+
git describe --tags --always --match "v*" | tr -d "\n" > .version
55
go version | awk '{print $3}' | tr -d "\n" > .go_version

0 commit comments

Comments
 (0)