From 65a36fea4622cd7dd2ce09e7c5824f327c8ed898 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 1 Feb 2024 22:00:54 -0600 Subject: [PATCH] maybe rebuilds. maybe Signed-off-by: Jeff Carr --- globalResetOptions.go | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/globalResetOptions.go b/globalResetOptions.go index fa8ee68..6d81ef5 100644 --- a/globalResetOptions.go +++ b/globalResetOptions.go @@ -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}) }