diff options
| author | Jeff Carr <[email protected]> | 2024-12-12 23:15:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-12 23:15:19 -0600 |
| commit | 4928804bf41c8c9194390e122cd9337d624b7eed (patch) | |
| tree | 6cbefcd6c38912f09eb0ff9307888bbf97a45778 /finalGoSumCheck.go | |
| parent | 6d25d1b1cb1a30dca271117774edeaeb95211f3d (diff) | |
move go.mod handling code to go-mod-clean
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'finalGoSumCheck.go')
| -rw-r--r-- | finalGoSumCheck.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go index 33e5a4d..01a9195 100644 --- a/finalGoSumCheck.go +++ b/finalGoSumCheck.go @@ -49,7 +49,7 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool { depRepo := deps.Next() found := f.Repos.FindByGoPath(depRepo.GetGoPath()) if found == nil { - if f.checkOverride(depRepo.GetGoPath()) { + if f.CheckOverride(depRepo.GetGoPath()) { // skip this gopath because it's probably broken forever continue } @@ -63,8 +63,8 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool { if f.Config.IsReadOnly(check.GoPath) { log.Printf("%-48s ok error .%s. vs .%s. (ignoring read-only repo)", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) } else { - if f.checkOverride(depRepo.GetGoPath()) { - log.Printf("%-48s ok error .%s. vs .%s. (forge.checkOverride())", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) + if f.CheckOverride(depRepo.GetGoPath()) { + log.Printf("%-48s ok error .%s. vs .%s. (forge.CheckOverride())", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) // skip this gopath because it's probably broken forever continue } else { @@ -77,38 +77,38 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool { return good } -func (f *Forge) checkOverride(gopath string) bool { +func (f *Forge) CheckOverride(gopath string) bool { if gopath == "cloud.google.com/go" { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if gopath == "bou.ke/monkey" { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if gopath == "github.com/posener/complete/v2" { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if strings.HasPrefix(gopath, "github.com/go-gl") { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if strings.HasPrefix(gopath, "google.golang.org") { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if strings.HasPrefix(gopath, "go.opencensus.io") { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } if strings.HasPrefix(gopath, "github.com/nicksnyder/go-i18n") { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } // fuckit for now. just blacklist github.com if strings.HasPrefix(gopath, "github.com/") { - log.Info("checkOverride() is ignoring", gopath) + log.Info("CheckOverride() is ignoring", gopath) return true } return false |
