Fix missing go version in build tags

This commit is contained in:
Fabian Reinartz 2015-09-18 10:38:26 +02:00
parent ac9554539c
commit dbb66d79ab

View File

@ -22,6 +22,7 @@ revision=$( git rev-parse --short HEAD 2> /dev/null || echo 'unknown' )
branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' )
host=$( hostname -f )
build_date=$( date +%Y%m%d-%H:%M:%S )
go_version=$( go version | sed -e 's/^[^0-9.]*\([0-9.]*\).*/\1/' )
if [ "$(go env GOOS)" = "windows" ]; then
ext=".exe"