Verified Commit c593bba1 authored by Torsten Grote's avatar Torsten Grote
Browse files

Add a check for the installed golang version

parent 17a53d43
Pipeline #2546 passed with stages
in 8 minutes and 24 seconds
......@@ -2,7 +2,7 @@
import os
from glob import glob
from shutil import move, rmtree
from subprocess import check_call
from subprocess import check_call, check_output
from utils import get_build_versions, ex, get_sha256, fail, zip_files, get_final_file_name, \
get_sources_file_name, get_pom_file_name, reset_time, get_obfs4_version
......@@ -16,6 +16,10 @@ 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"):
fail("You need Go version %s to reproduce this binary" % versions['go']['version'])
# Setup Android NDK
......@@ -5,6 +5,9 @@
"got-get": "",
"tag": "obfs4proxy-0.0.7"
"go": {
"version": "go1.10.3"
"ndk": {
"url": "",
"revision": "18.0.5002713",
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