golang update to 1.11.9

This commit is contained in:
Ertuğrul Erata
2019-04-14 23:30:33 +03:00
parent 382c3d4133
commit 4e6fc45280
2 changed files with 15 additions and 27 deletions
+3 -13
View File
@@ -15,12 +15,12 @@ def build():
shelltools.export("go_platform","linux-amd64")
shelltools.export("go_linker","/lib/ld-linux-x86-64.so.2")
shelltools.export("GOROOT", "%s/go-go1.10.3" % get.workDIR()) #0
shelltools.export("GOROOT", "%s/go-go1.11.9" % get.workDIR()) #0
shelltools.export("GOBIN", "$GOROOT/bin") #1
shelltools.export("GOPATH", "%s" % get.workDIR())
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.10.3/go-linux-amd64-bootstrap" % get.workDIR()) #2
shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.11.9/go-linux-amd64-bootstrap" % get.workDIR()) #2
shelltools.export("GOOS","linux")
shelltools.export("GOARCH","amd64")
@@ -29,19 +29,9 @@ def build():
shelltools.system("./make.bash")
#shelltools.cd("%s/go-go1.6.3" % get.workDIR())
#shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc")
#shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc")
#for tool in ["godex", "godoc", "goimports", "gomvpkg", "gorename", "gotype", "benchcmp", "bundle", "callgraph", "digraph", "eg", "fiximports", "html2article", "oracle", #"present", "ssadump", "stress", "stringer"]:
# shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool)
# shelltools.system("$GOROOT/bin/go build -v -x -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool))
def install():
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
shelltools.cd("%s/go-go1.10.3" % get.workDIR())
shelltools.cd("%s/go-go1.11.9" % get.workDIR())
pisitools.dodir("/usr/lib/go")
shelltools.system("cp -r api bin doc lib pkg src %s/usr/lib/go" % get.installDIR())