summaryrefslogtreecommitdiff
path: root/doBuild.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 15:56:51 -0500
committerJeff Carr <[email protected]>2025-10-26 15:56:51 -0500
commit5e89b5f08dc80fbe288227997f3ed8c789d1f17d (patch)
treee3bdc88cfa546e7c930c89317e08e470d16d9e83 /doBuild.go
parent44b327450b27ebb93b47b4366c2d5b9bffdef59f (diff)
maybe rill will work here again
Diffstat (limited to 'doBuild.go')
-rw-r--r--doBuild.go29
1 files changed, 7 insertions, 22 deletions
diff --git a/doBuild.go b/doBuild.go
index a478661..ba37d20 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -10,7 +10,6 @@ import (
"strings"
"go.wit.com/lib/cobol"
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/argvpb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -97,38 +96,24 @@ func doBuild() (string, error) {
} else {
age = cobol.Duration(t)
}
- tobuild.Clone(repo)
cmd := makeGoDebCmd(repo, newcount, "")
cmdstr := fmt.Sprintf("%v", cmd)
simpletable = append(simpletable, []string{debname, p.Version, age, smartver, bcount, curver, newcount, arches, cmdstr})
- if !argv.DryRun {
- err := repo.RunVerbose(cmd)
- if err != nil {
- argvpb.BadExit("go-deb failed", err)
- }
- }
- // argvpb.GoodExit("built 1")
+
+ newr := tobuild.Clone(repo)
+ newr.DirtyList = cmd
}
footer := cobol.SimpleTable(simpletable)
log.Info("simple build table footer:", footer)
if !argv.DryRun {
- shell.RunVerbose([]string{"do-aptly"})
+ return doBuildDeb(tobuild)
+ }
+ for r := range tobuild.IterAll() {
+ log.Info(r.FullPath, r.DirtyList)
}
-
- argv.DryRun = true
- // for r := range tobuild.IterAll() {
- // }
- /*
- if err := doInstall(found); err != nil {
- // log.Info("doInstall() failed", err)
- argvpb.BadExit("doInstall() failed", err)
- }
- return doBuildDeb(found)
- */
}
-
return "todo: doBuild()", nil
}