Skip to content

Commit

Permalink
Merge commit '32217c844015816b86c46a8d74a175c42f0e307a'
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Oct 9, 2017
2 parents cfea8b5 + 32217c8 commit daf989e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/libbuild/libbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def _goenv():

GOENV = _goenv()
GOPATH = GOENV["GOPATH"]
GOBIN = GOENV["GOPATH"] + '/bin'
GOHOSTOS = GOENV["GOHOSTOS"]
GOHOSTARCH = GOENV["GOHOSTARCH"]
GOC = 'go'
Expand Down Expand Up @@ -179,7 +180,7 @@ def go_build(name, goos, goarch, main):
if goos == 'alpine':
repo_dir = REPO_ROOT[len(GOPATH):]
uid = check_output('id -u').strip()
cmd = "docker run --rm -ti -u {uid} -v {repo_root}:/go{repo_dir} -w /go{repo_dir} -e {cgo_env} golang:1.8.3-alpine {goc} build -o {bindir}/{name}-{goos}-{goarch}{ext} {cgo} {ldflags} {main}".format(
cmd = "docker run --rm -ti -u {uid} -v {repo_root}:/go{repo_dir} -w /go{repo_dir} -e {cgo_env} golang:1.9.1-alpine {goc} build -o {bindir}/{name}-{goos}-{goarch}{ext} {cgo} {ldflags} {main}".format(
repo_root=REPO_ROOT,
repo_dir=repo_dir,
uid=uid,
Expand Down

0 comments on commit daf989e

Please sign in to comment.