summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 01:47:34 -0600
committerJeff Carr <[email protected]>2025-01-30 01:47:34 -0600
commit52f41adba278c333fb838d8812f63b5e95034916 (patch)
tree428739fc8c6bb0b2ea2f4dccc09e90abed4aa756
parent9561e45610f62642402bcc182ecd963f133bd10d (diff)
-rw-r--r--clone.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/clone.go b/clone.go
index 9b5ec33..f97d800 100644
--- a/clone.go
+++ b/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)
}
}