rill stuff
This commit is contained in:
parent
31a8c54d0f
commit
57883ffa61
|
@ -58,7 +58,8 @@ func doRelease() bool {
|
||||||
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
||||||
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
||||||
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
|
||||||
log.Sleep(5)
|
check.Reload()
|
||||||
|
log.Sleep(1)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
me.done = append(me.done, me.current.GetGoPath())
|
me.done = append(me.done, me.current.GetGoPath())
|
||||||
|
|
34
findNext.go
34
findNext.go
|
@ -2,8 +2,11 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
|
||||||
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,10 +14,23 @@ var findCounter int
|
||||||
var findFix bool = false
|
var findFix bool = false
|
||||||
var findOk bool = true
|
var findOk bool = true
|
||||||
|
|
||||||
|
func rillFixGodeps(repo *gitpb.Repo) error {
|
||||||
|
if fixGodeps(repo) {
|
||||||
|
log.Info("fixGoDeps() returned true")
|
||||||
|
} else {
|
||||||
|
log.Info("fixGoDeps() returned false")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// trys to figure out if there is still something to update
|
// trys to figure out if there is still something to update
|
||||||
// todo: redo this logic as it is terrible
|
// todo: redo this logic as it is terrible
|
||||||
// rename this findNext()
|
// rename this findNext()
|
||||||
func findNext() bool {
|
func findNext() bool {
|
||||||
|
now := time.Now()
|
||||||
|
me.forge.RillFuncError(2, 2, rillFixGodeps)
|
||||||
|
log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
|
||||||
|
|
||||||
findCounter = 0
|
findCounter = 0
|
||||||
all := me.forge.Repos.SortByFullPath()
|
all := me.forge.Repos.SortByFullPath()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
|
@ -38,15 +54,17 @@ func findNext() bool {
|
||||||
log.Info("findNext() skipping dirty")
|
log.Info("findNext() skipping dirty")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if findFix {
|
/*
|
||||||
log.Info("findFix is true. running fixGoDeps()")
|
if findFix {
|
||||||
if fixGodeps(check) {
|
log.Info("findFix is true. running fixGoDeps()")
|
||||||
log.Info("fixGoDeps() returned true")
|
if fixGodeps(check) {
|
||||||
} else {
|
log.Info("fixGoDeps() returned true")
|
||||||
log.Info("fixGoDeps() returned false")
|
} else {
|
||||||
}
|
log.Info("fixGoDeps() returned false")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
findCounter += 1
|
findCounter += 1
|
||||||
if !check.ParseGoSum() {
|
if !check.ParseGoSum() {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue