summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-04 15:36:49 -0600
committerJeff Carr <[email protected]>2024-12-04 15:36:49 -0600
commitf98179971e574de202c582576e59a8e3da68530f (patch)
treed7ae78b10ea961722015a658e82cb13dbe92ad2d /finalGoSumCheck.go
parent4d221c522035e05947b136385e23b78eccc9c578 (diff)
this .proto might allow generic marshal recovery
Diffstat (limited to 'finalGoSumCheck.go')
-rw-r--r--finalGoSumCheck.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go
index b905c78..22618eb 100644
--- a/finalGoSumCheck.go
+++ b/finalGoSumCheck.go
@@ -20,7 +20,7 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
log.Info("boo, check == nil")
return false
}
- if ! check.Exists("go.mod") {
+ if !check.Exists("go.mod") {
log.Info("go.mod is missing in", check.GoPath)
return false
}
@@ -58,7 +58,7 @@ 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.IsReadOnly(check) {
+ if f.Config.IsReadOnly(check.GoPath) {
log.Printf("%-48s ok error .%s. vs .%s. (ignoring read-only repo)", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetTargetVersion())
} else {
if f.checkOverride(depRepo.GetGoPath()) {