diff options
| author | Jeff Carr <[email protected]> | 2024-12-02 07:01:09 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-02 07:01:09 -0600 |
| commit | 86e0a1f9885b839c83e0cac3685cac0af0b54a62 (patch) | |
| tree | 64792e90a14ebd08ee9207f095ddb5652a71414a /goDebCheck.go | |
| parent | f5d41d782af2c8f04971f88d98d4b641997ae870 (diff) | |
migrate code here
Diffstat (limited to 'goDebCheck.go')
| -rw-r--r-- | goDebCheck.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/goDebCheck.go b/goDebCheck.go index 65a75e5..7e23e67 100644 --- a/goDebCheck.go +++ b/goDebCheck.go @@ -22,6 +22,12 @@ func (f *Forge) FinalGoDepsCheck(check *gitpb.Repo) bool { check.GoDeps = nil check.ParseGoSum() + if check.GoDepsLen() == 0 { + // this is a primitive + check.GoPrimitive = true + return true + } + log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen()) deps := check.GoDeps.SortByGoPath() for deps.Scan() { @@ -32,7 +38,7 @@ func (f *Forge) FinalGoDepsCheck(check *gitpb.Repo) bool { return false } // log.Info("found dep", depRepo.GetGoPath()) - if depRepo.GetVersion() != found.GetMasterVersion() { + if depRepo.GetVersion() != found.GetTargetVersion() { if f.IsReadOnly(depRepo.GetGoPath()) { log.Printf("%-48s ok error %10s vs %10s (ignoring read-only repo)", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetMasterVersion()) } else { |
