Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mvadu opened this issue Oct 23, 2021 · 0 comments
Open

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

mvadu opened this issue Oct 23, 2021 · 0 comments

Comments

@mvadu
Copy link

mvadu commented Oct 23, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant