ignore version checks on cloud.google.com/go embedded GO packages
This commit is contained in:
parent
c8339bec60
commit
a1bab32121
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue