attempt autobuild again

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-15 23:24:33 -06:00
parent a095ab6a9f
commit f18bfca154
2 changed files with 12 additions and 7 deletions

15
main.go
View File

@ -163,6 +163,7 @@ func repoworld() {
break break
} }
} }
newCmds = append(newCmds, []string{"cd", "."})
newCmds = append(newCmds, []string{"rm", "-rf", "go/src/"}) newCmds = append(newCmds, []string{"rm", "-rf", "go/src/"})
newCmds = append(newCmds, []string{"chmod", "700", "-R", "go/pkg/"}) newCmds = append(newCmds, []string{"chmod", "700", "-R", "go/pkg/"})
newCmds = append(newCmds, []string{"rm", "-rf", "go/pkg/"}) newCmds = append(newCmds, []string{"rm", "-rf", "go/pkg/"})
@ -179,17 +180,21 @@ func repoworld() {
buildOptions.NewLabel("get autotypist") buildOptions.NewLabel("get autotypist")
buildOptions.NewButton("go get", func () { buildOptions.NewButton("go get", func () {
var newCmds [][]string var newCmds [][]string
newCmds = append(newCmds, []string{"mkdir", "-p", "~/go/src/go.wit.com/apps"}) newCmds = append(newCmds, []string{"cd", "."})
newCmds = append(newCmds, []string{"mkdir", "-p", "go/src/go.wit.com/apps/"})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/"})
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/apps/myrepos"}) newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/apps/myrepos"})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"})
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."}) newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "go.wit.com/gui/toolkits"}) newCmds = append(newCmds, []string{"go", "get", "-v", "go.wit.com/gui/toolkits"})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits/andlabs"})
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."}) newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
newCmds = append(newCmds, []string{"go", "make"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits/gocui"})
newCmds = append(newCmds, []string{"go", "get", "-v", "-u", "."})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/gui/toolkits"})
newCmds = append(newCmds, []string{"make"})
newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"}) newCmds = append(newCmds, []string{"cd", "go/src/go.wit.com/apps/myrepos"})
newCmds = append(newCmds, []string{"go", "make"}) newCmds = append(newCmds, []string{"make"})
script = newCmds script = newCmds
setGitCommands() setGitCommands()
doit.Enable() doit.Enable()

View File

@ -34,12 +34,12 @@ func goMake(dryRun string) bool {
cmd := line[0] cmd := line[0]
s := strings.Join(line[1:], " ") s := strings.Join(line[1:], " ")
path := repopath + workingPath path := repopath + workingPath
log.Warn("NEED TO RUN path =", path, "cmd =", cmd, "argv:", s) log.Warn("NEED TO RUN path =", path, "cmd =", cmd, s)
if dryRun == "--dry-run" { if dryRun == "--dry-run" {
continue continue
} }
if dryRun == "--doit" { if dryRun == "--doit" {
log.Warn("Actually RUN path =", path, "cmd =", cmd, "argv:", s) log.Warn("Actually RUN path =", path, "cmd =", cmd, s)
err, b, output := repostatus.RunCmd(repopath, line) err, b, output := repostatus.RunCmd(repopath, line)
if err != nil { if err != nil {
log.Info("ABEND EXECUTION") log.Info("ABEND EXECUTION")