Fix build script for go modules

pull/5265/head
Brandon Farmer 2019-04-16 15:14:52 -07:00
parent 22481de691
commit 17d3c34307
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ def build(version=None,
return False
if platform == 'windows':
target = target + '.exe'
build_command += "go build -o {} ".format(os.path.join(outdir, target))
build_command += " GO111MODULES=on go build -o {} ".format(os.path.join(outdir, target))
if race:
build_command += "-race "
if len(tags) > 0: