mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Fix missing go version in build tags
This commit is contained in:
parent
ac9554539c
commit
dbb66d79ab
|
@ -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' )
|
branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' )
|
||||||
host=$( hostname -f )
|
host=$( hostname -f )
|
||||||
build_date=$( date +%Y%m%d-%H:%M:%S )
|
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
|
if [ "$(go env GOOS)" = "windows" ]; then
|
||||||
ext=".exe"
|
ext=".exe"
|
||||||
|
|
Loading…
Reference in a new issue