diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 13:35:01 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 13:35:01 -0600 |
| commit | 9c7572ca4517bfe28a305fd9fe828326a3e6b216 (patch) | |
| tree | c77d470e16d30d52f0ce51fc092676ddb0830450 /doStrict.go | |
| parent | 891017f2f9fe286e5e08e73b920887e6c78c985f (diff) | |
dump errors that were never tested
Diffstat (limited to 'doStrict.go')
| -rw-r--r-- | doStrict.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doStrict.go b/doStrict.go index 59439d7..ca9186b 100644 --- a/doStrict.go +++ b/doStrict.go @@ -64,24 +64,28 @@ func doStrict(repo *gitpb.Repo) error { return err } - if repo.Exists("go.mod") { + if !repo.Exists("go.mod") { // well, if go mod init fails, then we will just error since 'go mod init' almost never fails return err } - if _, err := repo.RunQuiet([]string{"go", "mod", "tidy", "-go=" + golangVersion}); err == nil { + if _, err := repo.RunQuiet([]string{"go", "mod", "tidy", "-go=" + golangVersion}); err != nil { // I guess the thing to do, if go mod tidy fails, is to just leave the repo alone // it's either primitive or could be a go support project but not in go return nil } // the first time, it'll attempt to fix some stuff + log.Info("Running: updateToNewestReleases()") cleanGoDepsCheckOk(repo) + // try to trim junk + log.Info("Running: trimGoSum()") if err := trimGoSum(repo); err != nil { log.Info(repo.GetGoPath(), "trimGoSum() failed", err) return err } + if repo.ParseGoSum() { log.Info(repo.GetGoPath(), "ParseGoSum() ok") } else { |
