From a1bab321212258cca84a14832f3ce7fe46bc5f43 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Aug 2025 10:22:32 -0500 Subject: [PATCH] ignore version checks on cloud.google.com/go embedded GO packages --- finalGoSumCheck.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go index b63235f..2d70c3b 100644 --- a/finalGoSumCheck.go +++ b/finalGoSumCheck.go @@ -72,38 +72,39 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo, verbose bool) error { return nil } +// TODO: this is a dumb hack & needs to be updated to talk to forged func (f *Forge) CheckOverride(gopath string) bool { - if gopath == "cloud.google.com/go" { - // log.Info("CheckOverride() is ignoring", gopath) - return true - } if gopath == "bou.ke/monkey" { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", gopath) return true } if gopath == "github.com/posener/complete/v2" { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", gopath) return true } if strings.HasPrefix(gopath, "github.com/go-gl") { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", gopath) return true } if strings.HasPrefix(gopath, "google.golang.org") { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", gopath) + return true + } + if strings.HasPrefix(gopath, "cloud.google.com/go") { + log.Info("CheckOverride() is bypassing", gopath) return true } if strings.HasPrefix(gopath, "go.opencensus.io") { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", gopath) return true } if strings.HasPrefix(gopath, "github.com/nicksnyder/go-i18n") { - // log.Info("CheckOverride() is ignoring", gopath) + log.Info("CheckOverride() is bypassing", 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 everything at github.com", gopath) return true } return false