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