fixed up some names
This commit is contained in:
parent
9561e45610
commit
52f41adba2
8
clone.go
8
clone.go
|
@ -108,7 +108,7 @@ func recursiveClone(check *gitpb.Repo) error {
|
|||
|
||||
func makeValidGoSum(check *gitpb.Repo) error {
|
||||
// attempt to grab the notes
|
||||
check.Run([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"})
|
||||
check.RunQuiet([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"})
|
||||
|
||||
if check.ParseGoSum() {
|
||||
return nil
|
||||
|
@ -116,7 +116,7 @@ func makeValidGoSum(check *gitpb.Repo) error {
|
|||
|
||||
log.Info("try running go-mod-clean")
|
||||
// update go.sum and go.mod
|
||||
if err := check.RunStrict([]string{"go-mod-clean"}); err != nil {
|
||||
if _, err := check.RunQuiet([]string{"go-mod-clean"}); err != nil {
|
||||
log.Info("")
|
||||
log.Info("Do you have go-mod-clean? Otherwise:")
|
||||
log.Info(" go install go.wit.com/apps/go-mod-clean@latest")
|
||||
|
@ -131,10 +131,10 @@ func makeValidGoSum(check *gitpb.Repo) error {
|
|||
if err := check.ValidGoSum(); err != nil {
|
||||
cmd := []string{"go", "mod", "init", check.GetGoPath()}
|
||||
log.Info("try running", cmd)
|
||||
if err := check.RunStrict(cmd); err != nil {
|
||||
if _, err := check.RunQuiet(cmd); err != nil {
|
||||
log.Info("go mod init failed", err)
|
||||
}
|
||||
if err := check.RunStrict([]string{"go", "mod", "tidy"}); err != nil {
|
||||
if _, err := check.RunQuiet([]string{"go", "mod", "tidy"}); err != nil {
|
||||
log.Info("go mod tidy failed", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue