handle primitive package logic
This commit is contained in:
parent
76c327b1f1
commit
cfd6046978
12
findNext.go
12
findNext.go
|
@ -4,6 +4,7 @@ package main
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"go.wit.com/log"
|
||||
|
@ -79,8 +80,19 @@ func findNext() bool {
|
|||
continue
|
||||
|
||||
}
|
||||
if godepsNew == nil {
|
||||
// don't check godepsNew, but check to make sure go mod tidy actually ran without error
|
||||
cmd := []string{"go", "mod", "tidy"}
|
||||
_, err := check.RunVerbose(cmd)
|
||||
if err != nil {
|
||||
log.Info("go mod tidy failed. this go package needs to be examined by hand as it doesn't appear to be primitive")
|
||||
os.Exit(-1)
|
||||
}
|
||||
// if godepsNew == nil, then this go package is a primitive and there is no go.sum file
|
||||
} else {
|
||||
if err := testGoDepsCheckOk(godepsNew, argv.Verbose); err != nil {
|
||||
log.Info("CHECKING current repo deps failed", err)
|
||||
}
|
||||
continue
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue