fstab / grok_exporter

Export Prometheus metrics from arbitrary unstructured log data.
Apache License 2.0
898 stars 152 forks source link

release.sh go version detection fails with go 1.17 #163

Open mvadu opened 3 years ago

mvadu commented 3 years ago

this stage in release.sh checks for specific versions of go. since its not up to date, trying to use it with latest version fails with a confusing message "grok_exporter uses Go 1.11 Modules. Please use Go version >= 1.11. Version found is go version go1.17.2 linux/amd64"

bash -ex release.sh linux-amd64
+ set -e
++ go version
+ [[ go version go1.17.2 linux/amd64 != *\g\o\1\.\1\1* ]]
++ go version
+ [[ go version go1.17.2 linux/amd64 != *\g\o\1\.\1\2* ]]
++ go version
+ [[ go version go1.17.2 linux/amd64 != *\g\o\1\.\1\3* ]]
++ go version
+ [[ go version go1.17.2 linux/amd64 != *\g\o\1\.\1\4* ]]
++ go version
+ [[ go version go1.17.2 linux/amd64 != *\g\o\1\.\1\5* ]]
+ echo 'grok_exporter uses Go 1.11 Modules. Please use Go version >= 1.11.'
grok_exporter uses Go 1.11 Modules. Please use Go version >= 1.11.
++ go version
+ echo 'Version found is go version go1.17.2 linux/amd64'
Version found is go version go1.17.2 linux/amd64
+ exit 1