use GetGoPrimitive()

This commit is contained in:
Jeff Carr 2024-12-17 20:47:35 -06:00
parent 4e0a111c8c
commit 491c4455d8
3 changed files with 13 additions and 2 deletions

View File

@ -98,3 +98,10 @@ curl-list-everything:
curl-file-for-go.wit.com: curl-file-for-go.wit.com:
curl --silent http://localhost:9419/goweblist?readonly=true curl --silent http://localhost:9419/goweblist?readonly=true
curl --silent http://localhost:9419/goweblist?readonly=true |sort > ~/go.wit.com.versions 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

View File

@ -134,7 +134,11 @@ func fixGodeps(check *gitpb.Repo) bool {
return false return false
} }
// skip primative ones // 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()) log.Info("fixGoDeps() skipping primitive", check.GetGoPath())
return true return true
} }

View File

@ -276,7 +276,7 @@ func showNext() {
} else { } else {
log.Info("CheckDirty() == false") log.Info("CheckDirty() == false")
} }
if ok, _ := check.IsPrimitive(); ok { if check.GetGoPrimitive() {
log.Info("IsPrimitive() == true") log.Info("IsPrimitive() == true")
} else { } else {
log.Info("IsPrimitive() == false") log.Info("IsPrimitive() == false")