diff options
| author | Jeff Carr <[email protected]> | 2025-08-31 10:22:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-31 10:22:32 -0500 |
| commit | a1bab321212258cca84a14832f3ce7fe46bc5f43 (patch) | |
| tree | 75478fb9f1d1cab03e24cc0bf66137bbe3a9e183 /finalGoSumCheck.go | |
| parent | c8339bec60ce41e9eb9769ac249bfb9701b967d4 (diff) | |
ignore version checks on cloud.google.com/go embedded GO packagesv0.0.120
Diffstat (limited to 'finalGoSumCheck.go')
| -rw-r--r-- | finalGoSumCheck.go | 23 |
1 files 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 |
