diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 20:47:35 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 20:47:35 -0600 |
| commit | 491c4455d8e3df13d9ef1ce52751cc35292ad337 (patch) | |
| tree | 0d878ea469a3e1967ad91a4b8e2850d892144bc6 | |
| parent | 4e0a111c8c60e8a869099de3fd521629d0f83ceb (diff) | |
use GetGoPrimitive()
| -rw-r--r-- | Makefile | 7 | ||||
| -rw-r--r-- | findNext.go | 6 | ||||
| -rw-r--r-- | http.go | 2 |
3 files changed, 13 insertions, 2 deletions
@@ -98,3 +98,10 @@ curl-list-everything: curl-file-for-go.wit.com: curl --silent http://localhost:9419/goweblist?readonly=true curl --silent http://localhost:9419/goweblist?readonly=true |sort > ~/go.wit.com.versions + +safe-build: install + forge --find-private + wit-package --no-gui --make-install + cd ~/go/src/go.wit.com/lib/xgb/ && GUIRELEASE_REASON="safe-build" guireleaser + + diff --git a/findNext.go b/findNext.go index 1e04bc9..bb11064 100644 --- a/findNext.go +++ b/findNext.go @@ -134,7 +134,11 @@ func fixGodeps(check *gitpb.Repo) bool { return false } // skip primative ones - if ok, _ := check.IsPrimitive(); ok { + if check.GetGoPrimitive() { + if check.Exists("go.sum") { + log.Info("fixGoDeps() has go.sum but says it is primitive", check.GetGoPath()) + return false + } log.Info("fixGoDeps() skipping primitive", check.GetGoPath()) return true } @@ -276,7 +276,7 @@ func showNext() { } else { log.Info("CheckDirty() == false") } - if ok, _ := check.IsPrimitive(); ok { + if check.GetGoPrimitive() { log.Info("IsPrimitive() == true") } else { log.Info("IsPrimitive() == false") |
