diff options
| author | Jeff Carr <[email protected]> | 2024-12-18 00:41:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-18 00:41:52 -0600 |
| commit | 4879befeb3ad89f0357f995413afcab904296599 (patch) | |
| tree | 5cd9ebfab4f1b2275d34512383f29b89322a4fce /cleanGoSum.go | |
| parent | 063e4e57c87c5e6c37709c9b327cf60ad80709d6 (diff) | |
parse out the required golang versionv0.0.18
Diffstat (limited to 'cleanGoSum.go')
| -rw-r--r-- | cleanGoSum.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go index e909c29..ec4c981 100644 --- a/cleanGoSum.go +++ b/cleanGoSum.go @@ -20,6 +20,9 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { var err error = nil var fixes [][]string log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen()) + if check.GoDeps == nil { + return errors.New("check.GoDeps == nil") + } all := check.GoDeps.SortByGoPath() for all.Scan() { depRepo := all.Next() |
