summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
committerJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
commitee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (patch)
treef7de75c50610d1fd7891834c9af7f0e555c145ce /finalGoSumCheck.go
parentb2e51ccb9efc326fda8615b1d2ad9f2ea3f16652 (diff)
lots of changes in gitpb
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()) {