Compare commits

...

3 Commits

Author SHA1 Message Date
Jeff Carr 6732640068 fix build 2025-09-22 16:34:17 -05:00
Jeff Carr ac02bbc094 dep stuff 2025-09-11 22:14:48 -05:00
Jeff Carr cd75bd9f61 set default max to 50 2025-09-11 18:40:17 -05:00
2 changed files with 9 additions and 13 deletions

View File

@ -23,6 +23,9 @@ func buildDeb() {
}
var counter int
if int(argv.Max) == 0 {
argv.Max = 50
}
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
@ -45,12 +48,12 @@ func buildDeb() {
}
if argv.Release {
cmd = []string{"go-deb", "--release", "--forge", check.GetGoPath(), "--dir", outdir}
cmd = []string{"go-deb", "--release", "--dir", outdir}
} else {
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
cmd = []string{"go-deb", "--dir", outdir}
}
if me.forge.Config.IsPrivate(check.GetGoPath()) {
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
cmd = []string{"go-deb", "--dir", outdir}
continue
}
@ -73,10 +76,6 @@ func buildDeb() {
counter += 1
if int(argv.Max) == 0 {
argv.Max = 10
}
if counter > int(argv.Max) {
log.Info("did --max builds", argv.Max)
okExit("")
@ -108,6 +107,7 @@ func buildDeb() {
*/
if err := check.RunVerbose(cmd); err != nil {
log.Info(check.FullPath, cmd)
failed[check] = fmt.Sprint("godeb failed", cmd, "with", err)
badExit(err)
} else {

View File

@ -43,11 +43,7 @@ func main() {
me.forge = forgepb.Init()
me.machine = new(zoopb.Machine)
if err := me.machine.ConfigLoad(); err != nil {
log.Info("zoopb.ConfigLoad() failed", err)
}
me.machine.InitWit()
me.machine, _ = zoopb.InitMachine()
if argv.Clone != nil {
if argv.RepoMap != "" {
@ -138,7 +134,7 @@ func okExit(thing string) {
}
func badExit(err error) {
log.Info("go-clean failed: ", err, me.forge.GetGoSrc())
log.Info("go-clean failed: ", err, me.forge.Config.ReposDir)
os.Exit(-1)
}