summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'finalGoSumCheck.go')
-rw-r--r--finalGoSumCheck.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go
index 01a9195..bb2df87 100644
--- a/finalGoSumCheck.go
+++ b/finalGoSumCheck.go
@@ -27,13 +27,16 @@ func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) bool {
return false
}
- // clear out the protobuf and rescan from the file
- check.GoDeps = nil
- if ok, _ := check.IsPrimitive(); ok {
+ // 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)
return true
}
+
+ // clear out the protobuf and rescan from the file
+ check.GoDeps = nil
if ok, err := check.ParseGoSum(); !ok {
- log.Info("FinalGoDepsCheckOk() error", err)
+ log.Info("forge.FinalGoDepsCheckOk() error", err)
return false
}