mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00: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' )
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user