fixed up some names

This commit is contained in:
Jeff Carr 2025-01-30 01:47:34 -06:00
parent 9561e45610
commit 52f41adba2
1 changed files with 4 additions and 4 deletions

View File

@ -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)
}
}