need fixes to force versions in go.mod
This commit is contained in:
parent
250742905f
commit
f690c1a8a3
|
@ -46,7 +46,8 @@ func doRelease() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
check := me.forge.FindByGoPath(me.current.GetGoPath())
|
// check := me.forge.FindByGoPath(me.current.GetGoPath())
|
||||||
|
check := me.current
|
||||||
if check == nil {
|
if check == nil {
|
||||||
log.Info("boo, you didn't git clone", me.current.GetGoPath())
|
log.Info("boo, you didn't git clone", me.current.GetGoPath())
|
||||||
return false
|
return false
|
||||||
|
|
22
findNext.go
22
findNext.go
|
@ -66,9 +66,7 @@ func findNext() bool {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if alreadyDone(check) {
|
if alreadyDone(check) {
|
||||||
log.Info("findNext() ALREADY DONE. WHY IS THIS STILL CHECKING?", check.GetGoPath())
|
log.Info("findNext() alreadyDone. WHY IS THIS STILL CHECKING?", check.GetGoPath())
|
||||||
log.Info("findNext() ALREADY DONE. WHY IS THIS STILL CHECKING?", check.GetGoPath())
|
|
||||||
log.Info("findNext() ALREADY DONE. WHY IS THIS STILL CHECKING?", check.GetGoPath())
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Info("CHECKING:", check.GetGoPath())
|
log.Info("CHECKING:", check.GetGoPath())
|
||||||
|
@ -87,6 +85,12 @@ func findNext() bool {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := me.forge.CleanGoDepsCheckOk(check); err != nil {
|
||||||
|
log.Info("CleanGoDepsCheckOk() failed", check.GetGoPath(), err)
|
||||||
|
log.Info("CleanGoDepsCheckOk() failed", check.GetGoPath(), err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if err := checkDeps(check); err != nil {
|
if err := checkDeps(check); err != nil {
|
||||||
log.Info("\t", check.GetGoPath(), err)
|
log.Info("\t", check.GetGoPath(), err)
|
||||||
continue
|
continue
|
||||||
|
@ -94,16 +98,14 @@ func findNext() bool {
|
||||||
log.Info("Might be ok?", check.GetGoPath())
|
log.Info("Might be ok?", check.GetGoPath())
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err == nil {
|
if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil {
|
||||||
|
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
|
||||||
|
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
log.Info("GOOD TO GO ON", check.GetGoPath())
|
log.Info("GOOD TO GO ON", check.GetGoPath())
|
||||||
setCurrentRepo(check, "should be good to release", "pretty sure")
|
setCurrentRepo(check, "should be good to release", "pretty sure")
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
log.Info("FinalGoDepsCheckOk() failed")
|
|
||||||
log.Info("FinalGoDepsCheckOk() failed")
|
|
||||||
log.Info("FinalGoDepsCheckOk() failed")
|
|
||||||
}
|
|
||||||
log.Info("findNext() got to the end. repo", check.GetGoPath(), "did not work. trying to find a new one now")
|
|
||||||
}
|
}
|
||||||
if findCounter == 0 {
|
if findCounter == 0 {
|
||||||
log.Info("NOTHING TO UPDATE. findCounter =", findCounter)
|
log.Info("NOTHING TO UPDATE. findCounter =", findCounter)
|
||||||
|
|
|
@ -7,7 +7,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
@ -62,7 +61,7 @@ func rillRestore(repo *gitpb.Repo) error {
|
||||||
|
|
||||||
func rePrepareRelease() {
|
func rePrepareRelease() {
|
||||||
// reload the config
|
// reload the config
|
||||||
me.forge = forgepb.Init()
|
// me.forge = forgepb.Init()
|
||||||
me.found = new(gitpb.Repos)
|
me.found = new(gitpb.Repos)
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
@ -77,9 +76,7 @@ func rePrepareRelease() {
|
||||||
// means it was already published
|
// means it was already published
|
||||||
// protects against logic errors that might result
|
// protects against logic errors that might result
|
||||||
// in an infinite loop
|
// in an infinite loop
|
||||||
log.Info("WARNING already done", check.GetGoPath())
|
log.Info("WARNING alreadyDone rePrepareRelease()", check.GetGoPath())
|
||||||
log.Info("WARNING already done", check.GetGoPath())
|
|
||||||
log.Info("WARNING already done", check.GetGoPath())
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue