just name fixups. maybe more. this still doesn't work
This commit is contained in:
parent
ffb90cd28f
commit
d81a1f6cb9
|
@ -72,7 +72,7 @@ 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", "--smart"})
|
_, err := check.RunQuiet([]string{"go-mod-clean", "--smart"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("FAILED: findNext() go-mod-clean --smart", check.GetGoPath(), err)
|
log.Info("FAILED: findNext() go-mod-clean --smart", check.GetGoPath(), err)
|
||||||
continue
|
continue
|
||||||
|
@ -116,7 +116,6 @@ func findNext() bool {
|
||||||
if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil {
|
if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil {
|
||||||
// if err := me.forge.FinalGoDepsCheckOk(check, false); err != nil {
|
// if err := me.forge.FinalGoDepsCheckOk(check, false); err != nil {
|
||||||
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
|
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
|
||||||
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
|
|
||||||
log.Info("CHECKING END:", check.GetGoPath())
|
log.Info("CHECKING END:", check.GetGoPath())
|
||||||
log.Info("")
|
log.Info("")
|
||||||
continue
|
continue
|
||||||
|
@ -138,14 +137,11 @@ func findNext() bool {
|
||||||
|
|
||||||
// tries to fix the go.mod and go.sum files
|
// tries to fix the go.mod and go.sum files
|
||||||
func fixGodeps(check *gitpb.Repo) bool {
|
func fixGodeps(check *gitpb.Repo) bool {
|
||||||
log.Info("fixGoDeps() START", check.GetGoPath())
|
|
||||||
log.Info("fixGoDeps() START", check.GetGoPath())
|
|
||||||
log.Info("fixGoDeps() START", check.GetGoPath())
|
|
||||||
var good bool = true
|
var good bool = true
|
||||||
|
|
||||||
check.GoDeps = nil
|
check.GoDeps = nil
|
||||||
|
|
||||||
if result, err := check.RunStrictNew([]string{"go-mod-clean", "--strict"}); err != nil {
|
if result, err := check.RunQuiet([]string{"go-mod-clean", "--strict"}); err != nil {
|
||||||
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), err)
|
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), err)
|
||||||
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), len(result.Stdout), len(result.Stderr))
|
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), len(result.Stdout), len(result.Stderr))
|
||||||
if len(result.Stderr) > 0 {
|
if len(result.Stderr) > 0 {
|
||||||
|
|
|
@ -51,7 +51,7 @@ func rillRestore(repo *gitpb.Repo) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := repo.RunStrictNew([]string{"go-mod-clean", "--restore"})
|
_, err := repo.RunQuiet([]string{"go-mod-clean", "--restore"})
|
||||||
rillcount += 1
|
rillcount += 1
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("go-mod-clean --restore failed", repo.GetGoPath(), err)
|
log.Info("go-mod-clean --restore failed", repo.GetGoPath(), err)
|
||||||
|
|
Loading…
Reference in New Issue