attempt to build without GO111MODULE
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d8582ae6b9
commit
c9cdf0727b
|
@ -64,34 +64,35 @@ func globalTestingOptions(box *gui.Node) {
|
|||
}
|
||||
|
||||
func attemptAutoRebuild() {
|
||||
os.Setenv("GO111MODULE", "off")
|
||||
// os.Setenv("GO111MODULE", "off")
|
||||
os.Unsetenv("GO111MODULE")
|
||||
|
||||
version := "v0.19.0"
|
||||
|
||||
homeDir := me.userHomePwd.String()
|
||||
fullpath := filepath.Join(homeDir, "go")
|
||||
quickCmd(fullpath, []string{"mkdir", "-p", "src/go.wit.com/apps/"})
|
||||
quickCmd(homeDir, []string{"mkdir", "-p", "go/src/go.wit.com/apps/"})
|
||||
fullpath := filepath.Join(homeDir, "go/src/go.wit.com/apps/")
|
||||
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/")
|
||||
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/apps/autotypist"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/tree"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/nocui"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs"})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/apps/autotypist@"+version})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/debian@"+version})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/tree@"+version})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/nocui@"+version})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/gocui@"+version})
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "go.wit.com/toolkits/andlabs@"+version})
|
||||
|
||||
quickCmd(homeDir, []string{"mkdir", "-p", "go/lib"})
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/nocui/")
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../nocui.so"})
|
||||
libfile := filepath.Join(homeDir, "go/lib/nocui.so")
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
|
||||
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/gocui/")
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../gocui.so"})
|
||||
libfile = filepath.Join(homeDir, "go/lib/gocui.so")
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
|
||||
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/andlabs/")
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", "../andlabs.so"})
|
||||
libfile = filepath.Join(homeDir, "go/lib/andlabs.so")
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
|
||||
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/apps/autotypist")
|
||||
quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."})
|
||||
quickCmd(fullpath, []string{"go", "build", "-v", "-x"})
|
||||
fullpath = filepath.Join(homeDir, "go/src/go.wit.com")
|
||||
quickCmd(fullpath, []string{"go", "install", "-v", "go/src/go.wit.com/apps/autotypist@"+version})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue