diff options
Diffstat (limited to 'finalGoSumCheck.go')
| -rw-r--r-- | finalGoSumCheck.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go index daee477..e789c89 100644 --- a/finalGoSumCheck.go +++ b/finalGoSumCheck.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -52,12 +52,12 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) error { if depRepo.GetVersion() != found.GetTargetVersion() { check := f.Repos.FindByNamespace(depRepo.GetGoPath()) if f.Config.IsReadOnly(check.GetGoPath()) { - if ENV.Verbose() { + if env.Verbose() { log.Printf("%-48s ok error .%s. vs .%s. (ignoring read-only repo)\n", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) } } else { if f.CheckOverride(depRepo.GetGoPath()) { - if ENV.Verbose() { + if env.Verbose() { log.Printf("%-48s ok error .%s. vs .%s. (forge.CheckOverride())\n", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) } // skip this gopath because it's probably broken forever @@ -105,7 +105,7 @@ func (f *Forge) CheckOverride(gopath string) bool { } // fuckit for now. just blacklist github.com if strings.HasPrefix(gopath, "github.com/") { - if ENV.Verbose() { + if env.Verbose() { log.Info("CheckOverride() is ignoring everything at github.com", gopath) } return true @@ -140,12 +140,12 @@ func (f *Forge) TestGoDepsCheckOk(godeps *gitpb.GoDeps) error { if depRepo.GetVersion() != found.GetTargetVersion() { check := f.Repos.FindByNamespace(depRepo.GetGoPath()) if f.Config.IsReadOnly(check.GetGoPath()) { - if ENV.Verbose() { + if env.Verbose() { log.Printf("%-48s ok error .%s. vs .%s. (ignoring read-only repo)\n", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) } } else { if f.CheckOverride(depRepo.GetGoPath()) { - if ENV.Verbose() { + if env.Verbose() { log.Printf("%-48s ok error .%s. vs .%s. (forge.CheckOverride())\n", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion()) } // skip this gopath because it's probably broken forever |
