maybe rebuilds. maybe

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 22:00:54 -06:00
parent c9cdf0727b
commit 65a36fea46
1 changed files with 15 additions and 9 deletions

View File

@ -64,8 +64,7 @@ func globalTestingOptions(box *gui.Node) {
}
func attemptAutoRebuild() {
// os.Setenv("GO111MODULE", "off")
os.Unsetenv("GO111MODULE")
os.Setenv("GO111MODULE", "off")
version := "v0.19.0"
@ -73,26 +72,33 @@ func attemptAutoRebuild() {
quickCmd(homeDir, []string{"mkdir", "-p", "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@"+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(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"})
os.Unsetenv("GO111MODULE")
quickCmd(homeDir, []string{"mkdir", "-p", "go/lib"})
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/nocui/")
libfile := filepath.Join(homeDir, "go/lib/nocui.so")
quickCmd(fullpath, []string{"go", "mod", "init"})
quickCmd(fullpath, []string{"go", "mod", "tidy"})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/gocui/")
libfile = filepath.Join(homeDir, "go/lib/gocui.so")
quickCmd(fullpath, []string{"go", "mod", "init"})
quickCmd(fullpath, []string{"go", "mod", "tidy"})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
fullpath = filepath.Join(homeDir, "go/src/go.wit.com/toolkits/andlabs/")
libfile = filepath.Join(homeDir, "go/lib/andlabs.so")
quickCmd(fullpath, []string{"go", "mod", "init"})
quickCmd(fullpath, []string{"go", "mod", "tidy"})
quickCmd(fullpath, []string{"go", "build", "-v", "-x", "-buildmode=plugin", "-o", libfile})
fullpath = filepath.Join(homeDir, "go/src/go.wit.com")
quickCmd(fullpath, []string{"go", "install", "-v", "go/src/go.wit.com/apps/autotypist@"+version})
quickCmd(fullpath, []string{"go", "install", "-v", "go.wit.com/apps/autotypist@"+version})
}