Fix bug in Go version detection

There can be a version 'go1.10' which would have been excepted
even if 'go1.10.1' would have been installed.
parent c593bba1
Pipeline #2549 passed with stages
in 5 minutes and 37 seconds
......@@ -16,8 +16,8 @@ def main():
# Get the latest versions for building
versions = get_build_versions(None)
# Check if proper Go version is installed
if versions['go']['version'] not in check_output(['go', 'version']).decode("UTF-8"):
# Check if proper Go version is installed (trailing space, because 'go1.10' in 'go1.10.1')
if versions['go']['version'] + ' ' not in check_output(['go', 'version']).decode("UTF-8"):
fail("You need Go version %s to reproduce this binary" % versions['go']['version'])
# Setup Android NDK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment