ignore version checks on cloud.google.com/go embedded GO packages

This commit is contained in:
Jeff Carr 2025-08-31 10:22:32 -05:00
parent c8339bec60
commit a1bab32121
1 changed files with 12 additions and 11 deletions

View File

@ -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