diff options
| author | Jeff Carr <[email protected]> | 2025-01-08 04:53:45 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-08 04:53:45 -0600 | 
| commit | f5b53b403e24f3c1b90f986c7eea255b9e7fb366 (patch) | |
| tree | ef063dcc4cf8d5a9c89ab981264a4decd69c992e | |
| parent | 2c71c4a5fec1fd326c748fc67aa693387fc4a4a1 (diff) | |
| -rw-r--r-- | findNext.go | 26 | ||||
| -rw-r--r-- | prepareRelease.go | 6 | 
2 files changed, 17 insertions, 15 deletions
diff --git a/findNext.go b/findNext.go index 9b4f3be..c8970df 100644 --- a/findNext.go +++ b/findNext.go @@ -2,8 +2,6 @@  package main  import ( -	"strings" -  	"go.wit.com/log"  	"go.wit.com/lib/protobuf/gitpb" @@ -78,19 +76,23 @@ func runGoClean(check *gitpb.Repo, myarg string) bool {  	log.Info("Running", cmd, "in", check.GetGoPath())  	result := check.Run(cmd)  	if result.Error != nil { -		log.Info(cmd, "failed with", result.Error, check.GetGoPath()) -		log.Info("STDOUT") -		log.Info(strings.Join(result.Stdout, "\n")) -		log.Info("STDERR") -		log.Info(strings.Join(result.Stderr, "\n")) +		/* +			log.Info(cmd, "failed with", result.Error, check.GetGoPath()) +			log.Info("STDOUT") +			log.Info(strings.Join(result.Stdout, "\n")) +			log.Info("STDERR") +			log.Info(strings.Join(result.Stderr, "\n")) +		*/  		return false  	}  	if result.Exit != 0 { -		log.Info(cmd, "failed with", result.Exit, check.GetGoPath()) -		log.Info("STDOUT") -		log.Info(strings.Join(result.Stdout, "\n")) -		log.Info("STDERR") -		log.Info(strings.Join(result.Stderr, "\n")) +		/* +			log.Info(cmd, "failed with", result.Exit, check.GetGoPath()) +			log.Info("STDOUT") +			log.Info(strings.Join(result.Stdout, "\n")) +			log.Info("STDERR") +			log.Info(strings.Join(result.Stderr, "\n")) +		*/  		return false  	}  	if check.ParseGoSum() { diff --git a/prepareRelease.go b/prepareRelease.go index e85a660..c113715 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -50,7 +50,7 @@ func forceReleaseVersion(repo *gitpb.Repo) {  	}  	// empty git notes  	if result, err := repo.RunStrictNew([]string{"go-mod-clean", "--purge"}); err != nil { -		log.Info("probably you don't have go-mod-clean") +		log.Info("probably you don't have gomodclean")  		log.Info(strings.Join(result.Stdout, "\n"))  		log.Info(strings.Join(result.Stderr, "\n"))  		repo.Run([]string{"git", "notes", "remove"}) @@ -58,7 +58,7 @@ func forceReleaseVersion(repo *gitpb.Repo) {  	}  	if !runGoClean(repo, "--restore") { -		log.Info("go-mod-clean probably failed here. that's ok", repo.GetGoPath()) +		log.Info("gomodclean probably failed here. that's ok", repo.GetGoPath())  		// os.Exit(-1)  	}  } @@ -86,7 +86,7 @@ func rePrepareRelease() {  		}  		if !runGoClean(check, "--restore") { -			log.Info("go-mod-clean probably failed here. that's ok", check.GetGoPath()) +			log.Info("gomodclean probably failed here. that's ok", check.GetGoPath())  			// os.Exit(-1)  		}  	}  | 
