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
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"