summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-15 15:52:46 -0600
committerJeff Carr <[email protected]>2024-12-15 15:52:46 -0600
commita31f675e1228907786e90ffd0235eb10c42cd833 (patch)
treebc3f4810f9627130faa0fe6f6c537803c279743d /finalGoSumCheck.go
parente3608b784e5e89e7501fb310d3b4e13ac6ef41ae (diff)
still trying to perfect this. todo: make gitpb perfectv0.0.33
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
}