rename
This commit is contained in:
parent
5d5f691570
commit
a58234f82c
|
@ -20,8 +20,16 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
|
|||
log.Info("boo, check == nil")
|
||||
return false
|
||||
}
|
||||
if ! check.Exists("go.mod") {
|
||||
log.Info("go.mod is missing in", check.GoPath)
|
||||
return false
|
||||
}
|
||||
|
||||
// clear out the protobuf and rescan from the file
|
||||
check.GoDeps = nil
|
||||
if ok, _ := check.IsPrimitive(); ok {
|
||||
return true
|
||||
}
|
||||
if ok, err := check.ParseGoSum(); !ok {
|
||||
log.Info("FinalGoDepsCheckOk() error", err)
|
||||
return false
|
||||
|
@ -70,15 +78,32 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
|
|||
func (f *Forge) checkOverride(gopath string) bool {
|
||||
if gopath == "cloud.google.com/go" {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return false
|
||||
}
|
||||
if strings.HasPrefix(gopath, "github.com/go-gl") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return false
|
||||
return true
|
||||
}
|
||||
if gopath == "github.com/posener/complete/v2" {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return false
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(gopath, "github.com/go-gl") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(gopath, "google.golang.org") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(gopath, "go.opencensus.io") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(gopath, "github.com/nicksnyder/go-i18n") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return true
|
||||
}
|
||||
// fuckit for now. just blacklist github.com
|
||||
if strings.HasPrefix(gopath, "github.com/") {
|
||||
log.Info("checkOverride() is ignoring", gopath)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
Loading…
Reference in New Issue