summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'finalGoSumCheck.go')
-rw-r--r--finalGoSumCheck.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go
index bb2df87..0e5d26e 100644
--- a/finalGoSumCheck.go
+++ b/finalGoSumCheck.go
@@ -23,13 +23,13 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
return false
}
if !check.Exists("go.mod") {
- log.Info("go.mod is missing in", check.GoPath)
+ log.Info("go.mod is missing in", check.GetGoPath())
return false
}
// IsPrimitive() is expected to set GoPrimitive = true in the protobuf
if err := check.SetPrimitive(); err == nil {
- log.Info("gitpb.SetPrimitive() returned true for", check.GoPath)
+ log.Info("gitpb.SetPrimitive() returned true for", check.GetGoPath())
return true
}
@@ -42,7 +42,7 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
if check.GoDepsLen() == 0 {
// this is a primitive
- check.GoPrimitive = true
+ check.GoInfo.GoPrimitive = true
return true
}
@@ -50,7 +50,7 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
deps := check.GoDeps.SortByGoPath()
for deps.Scan() {
depRepo := deps.Next()
- found := f.Repos.FindByGoPath(depRepo.GetGoPath())
+ found := f.FindByGoPath(depRepo.GetGoPath())
if found == nil {
if f.CheckOverride(depRepo.GetGoPath()) {
// skip this gopath because it's probably broken forever
@@ -62,8 +62,8 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
}
// log.Info("found dep", depRepo.GetGoPath())
if depRepo.GetVersion() != found.GetTargetVersion() {
- check := f.Repos.FindByGoPath(depRepo.GoPath)
- if f.Config.IsReadOnly(check.GoPath) {
+ check := f.FindByGoPath(depRepo.GetGoPath())
+ if f.Config.IsReadOnly(check.GetGoPath()) {
log.Printf("%-48s ok error .%s. vs .%s. (ignoring read-only repo)", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion())
} else {
if f.CheckOverride(depRepo.GetGoPath()) {