diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 09:43:22 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 09:43:22 -0600 | 
| commit | 0c5183edf98c0e0c20091c329445363ee6113358 (patch) | |
| tree | 64f7419a5f608850dc5bbd64f46478bdbe70e10f | |
| parent | f07839992904c74994bf6afcfdbf34bb10121d69 (diff) | |
works more often nowv0.7.63v0.7.62v0.7.61v0.7.60v0.7.59v0.7.58v0.7.57v0.7.56v0.7.55v0.7.54v0.7.53v0.7.52v0.7.51v0.7.50v0.7.49v0.7.48
| -rw-r--r-- | clone.go | 10 | 
1 files changed, 7 insertions, 3 deletions
@@ -32,6 +32,7 @@ func clone(gopath string) (*gitpb.Repo, error) {  		return nil, err  	} +	autoWork()  	if err := makeValidGoSum(pb); err != nil {  		return nil, err  	} @@ -107,13 +108,16 @@ func makeValidGoSum(check *gitpb.Repo) error {  	// attempt to grab the notes  	check.RunQuiet([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"}) -	if check.ParseGoSum() { -		return nil +	if err := check.RunVerbose([]string{"forge", "list"}); 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") +		log.Info("")  	}  	log.Info("try running go-mod-clean")  	// update go.sum and go.mod -	if _, err := check.RunVerboseOnError([]string{"go-mod-clean"}); err != nil { +	if err := check.RunVerbose([]string{"go-mod-clean", "--smart"}); 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")  | 
