maybe this works finally
This commit is contained in:
parent
9ee828cc3b
commit
250742905f
18
findNext.go
18
findNext.go
|
@ -73,17 +73,11 @@ func findNext() bool {
|
||||||
}
|
}
|
||||||
log.Info("CHECKING:", check.GetGoPath())
|
log.Info("CHECKING:", check.GetGoPath())
|
||||||
// _, err := check.RunVerboseOnError([]string{"go-mod-clean", "--strict"})
|
// _, err := check.RunVerboseOnError([]string{"go-mod-clean", "--strict"})
|
||||||
_, err := check.RunStrictNew([]string{"go-mod-clean", "--strict"})
|
_, err := check.RunStrictNew([]string{"go-mod-clean", "--smart"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("FAILED:", check.GetGoPath())
|
log.Info("FAILED: findNext() go-mod-clean --smart", check.GetGoPath(), err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := checkDeps(check); err != nil {
|
|
||||||
log.Info("\t", check.GetGoPath(), err)
|
|
||||||
continue
|
|
||||||
} else {
|
|
||||||
log.Info("Might be ok?", check.GetGoPath())
|
|
||||||
}
|
|
||||||
|
|
||||||
findCounter += 1
|
findCounter += 1
|
||||||
if !check.ParseGoSum() {
|
if !check.ParseGoSum() {
|
||||||
|
@ -92,6 +86,14 @@ func findNext() bool {
|
||||||
log.Info("ParseGoSum() failed", check.GetGoPath())
|
log.Info("ParseGoSum() failed", check.GetGoPath())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := checkDeps(check); err != nil {
|
||||||
|
log.Info("\t", check.GetGoPath(), err)
|
||||||
|
continue
|
||||||
|
} else {
|
||||||
|
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("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")
|
||||||
|
|
|
@ -57,7 +57,6 @@ func rillRestore(repo *gitpb.Repo) error {
|
||||||
log.Info("go-mod-clean --restore failed", repo.GetGoPath(), err)
|
log.Info("go-mod-clean --restore failed", repo.GetGoPath(), err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// log.Info("go-mod-clean --restore worked ", repo.GetGoPath())
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue